Skip to content

Commit

Permalink
Connection dialoge should be centered
Browse files Browse the repository at this point in the history
  • Loading branch information
Sen66 authored Apr 15, 2024
1 parent e9a6ca8 commit 57af9b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flutter/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -258,15 +258,15 @@ showCmWindow({bool isStartup = false}) async {
]);
// ensure initial window size to be changed
await windowManager.setSizeAlignment(
kConnectionManagerWindowSizeClosedChat, Alignment.topRight);
kConnectionManagerWindowSizeClosedChat, Alignment.center);
_isCmReadyToShow = true;
} else if (_isCmReadyToShow) {
if (await windowManager.getOpacity() != 1) {
await windowManager.setOpacity(1);
await windowManager.focus();
await windowManager.minimize(); //needed
await windowManager.setSizeAlignment(
kConnectionManagerWindowSizeClosedChat, Alignment.topRight);
kConnectionManagerWindowSizeClosedChat, Alignment.center);
windowOnTop(null);
}
}
Expand Down

0 comments on commit 57af9b0

Please sign in to comment.