mirror of
https://github.com/rustdesk/rustdesk
synced 2026-05-23 17:09:40 +00:00
opt: center/align topright when toggle chat
This commit is contained in:
parent
204eab4b81
commit
f1bfb12494
1 changed files with 2 additions and 0 deletions
|
|
@ -167,8 +167,10 @@ class ChatModel with ChangeNotifier {
|
|||
_isShowChatPage = !_isShowChatPage;
|
||||
notifyListeners();
|
||||
await windowManager.setSize(Size(400, 600));
|
||||
await windowManager.setAlignment(Alignment.topRight);
|
||||
} else {
|
||||
await windowManager.setSize(Size(800, 600));
|
||||
await windowManager.center();
|
||||
await Future.delayed(Duration(milliseconds: 100));
|
||||
_isShowChatPage = !_isShowChatPage;
|
||||
notifyListeners();
|
||||
|
|
|
|||
Loading…
Reference in a new issue