mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 02:57:22 +00:00
opt: center/align topright when toggle chat
This commit is contained in:
@@ -167,8 +167,10 @@ class ChatModel with ChangeNotifier {
|
|||||||
_isShowChatPage = !_isShowChatPage;
|
_isShowChatPage = !_isShowChatPage;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
await windowManager.setSize(Size(400, 600));
|
await windowManager.setSize(Size(400, 600));
|
||||||
|
await windowManager.setAlignment(Alignment.topRight);
|
||||||
} else {
|
} else {
|
||||||
await windowManager.setSize(Size(800, 600));
|
await windowManager.setSize(Size(800, 600));
|
||||||
|
await windowManager.center();
|
||||||
await Future.delayed(Duration(milliseconds: 100));
|
await Future.delayed(Duration(milliseconds: 100));
|
||||||
_isShowChatPage = !_isShowChatPage;
|
_isShowChatPage = !_isShowChatPage;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
|
|||||||
Reference in New Issue
Block a user