fix: window blink on startup (#447)

This commit is contained in:
Noo6
2024-07-04 12:23:20 +08:00
committed by GitHub
parent 5ce13109b0
commit 43cebd0c04
2 changed files with 2 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ Future<void> _initApp() async {
final windowSize = Stores.setting.windowSize;
final hideTitleBar = Stores.setting.hideTitleBar.fetch();
SystemUIs.initDesktopWindow(
await SystemUIs.initDesktopWindow(
hideTitleBar: hideTitleBar,
size: windowSize.fetch().toSize(),
listener: WindowSizeListener(windowSize),