mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-06-07 18:02:48 +08:00
try fix linux cm abnormal show
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
e4f0a7b1d5
commit
193426a3c1
@ -185,7 +185,7 @@ class ConnectionManagerState extends State<ConnectionManager> {
|
||||
ChatPage(type: ChatPageType.desktopCM)),
|
||||
),
|
||||
)
|
||||
: Offstage(),
|
||||
: Expanded(child: Container()),
|
||||
),
|
||||
SizedBox(
|
||||
width: kConnectionManagerWindowSizeClosedChat.width -
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user