cache window size/pos

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-17 11:30:21 +08:00
parent 470140a068
commit 8a3cf34cb1
5 changed files with 59 additions and 8 deletions

View File

@@ -815,4 +815,12 @@ abstract class Pref {
static bool get minimizeOnExit =>
_setting.get(SettingBoxKey.minimizeOnExit, defaultValue: true);
static List<double> get windowSize => _setting.get(
SettingBoxKey.windowSize,
defaultValue: const [1180.0, 720.0],
);
static List<double>? get windowPosition =>
_setting.get(SettingBoxKey.windowPosition);
}