mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Make compact contact list a per-profile setting
Because some profiles have a huge contact list and some not, so it makes no sense as a global setting
This commit is contained in:
parent
f8b9741bc4
commit
1a8afd9543
|
@ -174,7 +174,6 @@ void Settings::loadGlobal()
|
|||
globalAutoAcceptDir = s.value("globalAutoAcceptDir",
|
||||
QStandardPaths::locate(QStandardPaths::HomeLocation, QString(), QStandardPaths::LocateDirectory)
|
||||
).toString();
|
||||
compactLayout = s.value("compactLayout", false).toBool();
|
||||
groupchatPosition = s.value("groupchatPosition", true).toBool();
|
||||
s.endGroup();
|
||||
|
||||
|
@ -299,6 +298,10 @@ void Settings::loadPersonnal(Profile* profile)
|
|||
ps.endArray();
|
||||
ps.endGroup();
|
||||
|
||||
ps.beginGroup("General");
|
||||
compactLayout = ps.value("compactLayout", false).toBool();
|
||||
ps.endGroup();
|
||||
|
||||
ps.beginGroup("Privacy");
|
||||
typingNotification = ps.value("typingNotification", false).toBool();
|
||||
enableLogging = ps.value("enableLogging", false).toBool();
|
||||
|
@ -355,7 +358,6 @@ void Settings::saveGlobal()
|
|||
s.setValue("notifySound", notifySound);
|
||||
s.setValue("groupAlwaysNotify", groupAlwaysNotify);
|
||||
s.setValue("fauxOfflineMessaging", fauxOfflineMessaging);
|
||||
s.setValue("compactLayout", compactLayout);
|
||||
s.setValue("groupchatPosition", groupchatPosition);
|
||||
s.setValue("autoSaveEnabled", autoSaveEnabled);
|
||||
s.setValue("globalAutoAcceptDir", globalAutoAcceptDir);
|
||||
|
@ -452,6 +454,10 @@ void Settings::savePersonal(QString profileName, QString password)
|
|||
ps.endArray();
|
||||
ps.endGroup();
|
||||
|
||||
ps.beginGroup("General");
|
||||
ps.setValue("compactLayout", compactLayout);
|
||||
ps.endGroup();
|
||||
|
||||
ps.beginGroup("Privacy");
|
||||
ps.setValue("typingNotification", typingNotification);
|
||||
ps.setValue("enableLogging", enableLogging);
|
||||
|
|
Loading…
Reference in New Issue
Block a user