try fix linux cm abnormal show

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-07-10 17:59:04 +08:00
parent e4f0a7b1d5
commit 193426a3c1
2 changed files with 5 additions and 5 deletions

View File

@@ -270,16 +270,16 @@ class ChatModel with ChangeNotifier {
gFFI.chatModel.changeCurrentKey(key);
}
if (_isShowCMChatPage) {
_isShowCMChatPage = !_isShowCMChatPage;
notifyListeners();
await windowManager.show();
await windowManager.setSizeAlignment(
kConnectionManagerWindowSizeClosedChat, Alignment.topRight);
await windowManager.show();
_isShowCMChatPage = !_isShowCMChatPage;
notifyListeners();
} else {
requestChatInputFocus();
await windowManager.show();
await windowManager.setSizeAlignment(
kConnectionManagerWindowSizeOpenChat, Alignment.topRight);
await windowManager.show();
_isShowCMChatPage = !_isShowCMChatPage;
notifyListeners();
}