Don't drop the old state of "systemDarkModeEnabled".

This commit is contained in:
John Preston 2024-11-17 14:07:07 +04:00
parent 6c64c22f83
commit f4e2b4bcbd

View file

@ -478,7 +478,6 @@ void Settings::addFromSerialized(const QByteArray &serialized) {
qint32 notifyFromAll = _notifyFromAll ? 1 : 0;
qint32 nativeWindowFrame = _nativeWindowFrame.current() ? 1 : 0;
qint32 systemDarkModeEnabled = _systemDarkModeEnabled.current() ? 1 : 0;
qint32 legacySystemDarkModeEnabled = 0;
qint32 ipRevealWarning = _ipRevealWarning ? 1 : 0;
qint32 groupCallPushToTalk = _groupCallPushToTalk ? 1 : 0;
QByteArray groupCallPushToTalkShortcut = _groupCallPushToTalkShortcut;
@ -612,7 +611,8 @@ void Settings::addFromSerialized(const QByteArray &serialized) {
stream >> nativeWindowFrame;
}
if (!stream.atEnd()) {
stream >> legacySystemDarkModeEnabled;
// Read over this one below, if was in the file.
stream >> systemDarkModeEnabled;
}
if (!stream.atEnd()) {
stream >> cameraDeviceId;