mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
save sets dialog size (#4791)
* save sets dialog size * reset sorting when restoring * add to gitignore
This commit is contained in:
parent
421da882d8
commit
70ab02987a
9 changed files with 61 additions and 8 deletions
|
|
@ -225,6 +225,7 @@ SettingsCache::SettingsCache()
|
|||
|
||||
mainWindowGeometry = settings->value("interface/main_window_geometry").toByteArray();
|
||||
tokenDialogGeometry = settings->value("interface/token_dialog_geometry").toByteArray();
|
||||
setsDialogGeometry = settings->value("interface/sets_dialog_geometry").toByteArray();
|
||||
notificationsEnabled = settings->value("interface/notificationsenabled", true).toBool();
|
||||
spectatorNotificationsEnabled = settings->value("interface/specnotificationsenabled", false).toBool();
|
||||
buddyConnectNotificationsEnabled = settings->value("interface/buddyconnectnotificationsenabled", true).toBool();
|
||||
|
|
@ -617,6 +618,12 @@ void SettingsCache::setTokenDialogGeometry(const QByteArray &_tokenDialogGeometr
|
|||
settings->setValue("interface/token_dialog_geometry", tokenDialogGeometry);
|
||||
}
|
||||
|
||||
void SettingsCache::setSetsDialogGeometry(const QByteArray &_setsDialogGeometry)
|
||||
{
|
||||
setsDialogGeometry = _setsDialogGeometry;
|
||||
settings->setValue("interface/sets_dialog_geometry", setsDialogGeometry);
|
||||
}
|
||||
|
||||
void SettingsCache::setPixmapCacheSize(const int _pixmapCacheSize)
|
||||
{
|
||||
pixmapCacheSize = _pixmapCacheSize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue