From f4e2b4bcbd83fbbf226a8239af9edeeb089bf029 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 17 Nov 2024 14:07:07 +0400 Subject: [PATCH] Don't drop the old state of "systemDarkModeEnabled". --- Telegram/SourceFiles/core/core_settings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/core/core_settings.cpp b/Telegram/SourceFiles/core/core_settings.cpp index 5170b16fc..3090ec1a0 100644 --- a/Telegram/SourceFiles/core/core_settings.cpp +++ b/Telegram/SourceFiles/core/core_settings.cpp @@ -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;