mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Version 2.5.9: Fix reading settings from old apps.
This commit is contained in:
parent
69b41fadef
commit
8500bf6073
1 changed files with 3 additions and 1 deletions
|
@ -725,7 +725,9 @@ bool ReadSetting(
|
||||||
auto position = TWindowPos();
|
auto position = TWindowPos();
|
||||||
stream >> position.x >> position.y >> position.w >> position.h;
|
stream >> position.x >> position.y >> position.w >> position.h;
|
||||||
stream >> position.moncrc >> position.maximized;
|
stream >> position.moncrc >> position.maximized;
|
||||||
stream >> position.scale;
|
if (version >= 2005009) {
|
||||||
|
stream >> position.scale;
|
||||||
|
}
|
||||||
if (!CheckStreamStatus(stream)) return false;
|
if (!CheckStreamStatus(stream)) return false;
|
||||||
|
|
||||||
DEBUG_LOG(("Window Pos: Read from storage %1, %2, %3, %4 (scale %5%, maximized %6)")
|
DEBUG_LOG(("Window Pos: Read from storage %1, %2, %3, %4 (scale %5%, maximized %6)")
|
||||||
|
|
Loading…
Add table
Reference in a new issue