Skip to content

Commit

Permalink
Windows CI updates
Browse files Browse the repository at this point in the history
  • Loading branch information
atavism committed Oct 28, 2024
1 parent ae2261e commit 7e079cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/features/window/window_container.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ class _WindowContainerState extends State<WindowContainer> with WindowListener {
super.initState();
if (isDesktop()) {
windowManager.addListener(this);
_initializeWindow();
WidgetsBinding.instance.addPostFrameCallback((_) async {
await windowManager.setPreventClose(true);
await _setWindowResizable();
await _initializeWindow();
});
}
}

Future<void> _initializeWindow() async {
await _setWindowResizable();
await windowManager.setPreventClose(true);
await windowManager.show();
await windowManager.focus();
}
Expand All @@ -51,7 +51,7 @@ class _WindowContainerState extends State<WindowContainer> with WindowListener {
// after the window is resized.
// See https://github.com/leanflutter/window_manager/issues/464
// and https://github.com/KRTirtho/spotube/issues/1553
await Future<void>.delayed(const Duration(milliseconds: 100), () async {
await Future<void>.delayed(const Duration(seconds: 2), () async {
windowManager.getSize().then((Size value) {
windowManager
.setSize(
Expand Down

0 comments on commit 7e079cf

Please sign in to comment.