2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Version 2.5.9: Move window position to Core::Settings.

This commit is contained in:
John Preston
2021-02-17 19:20:05 +04:00
parent 70570e0987
commit b3660f1ed8
10 changed files with 100 additions and 44 deletions

View File

@@ -529,19 +529,6 @@ void writeSettings() {
data.stream << quint32(dbiLanguagesKey) << quint64(_languagesKey);
}
auto position = cWindowPos();
data.stream << quint32(dbiWindowPosition) << qint32(position.x) << qint32(position.y) << qint32(position.w) << qint32(position.h);
data.stream << qint32(position.moncrc) << qint32(position.maximized);
data.stream << qint32(position.scale);
DEBUG_LOG(("Window Pos: Writing to storage %1, %2, %3, %4 (scale %5%, maximized %6)")
.arg(position.x)
.arg(position.y)
.arg(position.w)
.arg(position.h)
.arg(position.scale)
.arg(Logs::b(position.maximized)));
settings.writeEncrypted(data, SettingsKey);
}