mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Don't drop the old state of "systemDarkModeEnabled".
This commit is contained in:
parent
6c64c22f83
commit
f4e2b4bcbd
1 changed files with 2 additions and 2 deletions
|
@ -478,7 +478,6 @@ void Settings::addFromSerialized(const QByteArray &serialized) {
|
||||||
qint32 notifyFromAll = _notifyFromAll ? 1 : 0;
|
qint32 notifyFromAll = _notifyFromAll ? 1 : 0;
|
||||||
qint32 nativeWindowFrame = _nativeWindowFrame.current() ? 1 : 0;
|
qint32 nativeWindowFrame = _nativeWindowFrame.current() ? 1 : 0;
|
||||||
qint32 systemDarkModeEnabled = _systemDarkModeEnabled.current() ? 1 : 0;
|
qint32 systemDarkModeEnabled = _systemDarkModeEnabled.current() ? 1 : 0;
|
||||||
qint32 legacySystemDarkModeEnabled = 0;
|
|
||||||
qint32 ipRevealWarning = _ipRevealWarning ? 1 : 0;
|
qint32 ipRevealWarning = _ipRevealWarning ? 1 : 0;
|
||||||
qint32 groupCallPushToTalk = _groupCallPushToTalk ? 1 : 0;
|
qint32 groupCallPushToTalk = _groupCallPushToTalk ? 1 : 0;
|
||||||
QByteArray groupCallPushToTalkShortcut = _groupCallPushToTalkShortcut;
|
QByteArray groupCallPushToTalkShortcut = _groupCallPushToTalkShortcut;
|
||||||
|
@ -612,7 +611,8 @@ void Settings::addFromSerialized(const QByteArray &serialized) {
|
||||||
stream >> nativeWindowFrame;
|
stream >> nativeWindowFrame;
|
||||||
}
|
}
|
||||||
if (!stream.atEnd()) {
|
if (!stream.atEnd()) {
|
||||||
stream >> legacySystemDarkModeEnabled;
|
// Read over this one below, if was in the file.
|
||||||
|
stream >> systemDarkModeEnabled;
|
||||||
}
|
}
|
||||||
if (!stream.atEnd()) {
|
if (!stream.atEnd()) {
|
||||||
stream >> cameraDeviceId;
|
stream >> cameraDeviceId;
|
||||||
|
|
Loading…
Add table
Reference in a new issue