Skip to content

Commit

Permalink
Merge pull request #3 from vilkris4/fix_window_not_visible
Browse files Browse the repository at this point in the history
Window not visible if previously shut down as minimized
  • Loading branch information
zenon-network committed Jun 9, 2022
2 parents abb0d54 + bd99bc0 commit 9a394eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ main() async {
double? windowPositionX = sharedPrefsService!.get(kWindowPositionXKey);
double? windowPositionY = sharedPrefsService!.get(kWindowPositionYKey);
if (windowPositionX != null && windowPositionY != null) {
windowPositionX = windowPositionX >= 0 ? windowPositionX : 100;
windowPositionY = windowPositionY >= 0 ? windowPositionY : 100;
await windowManager
.setPosition(Offset(windowPositionX, windowPositionY));
}
Expand Down

0 comments on commit 9a394eb

Please sign in to comment.