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)),
|
ChatPage(type: ChatPageType.desktopCM)),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
: Offstage(),
|
: Expanded(child: Container()),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: kConnectionManagerWindowSizeClosedChat.width -
|
width: kConnectionManagerWindowSizeClosedChat.width -
|
||||||
|
@ -270,16 +270,16 @@ class ChatModel with ChangeNotifier {
|
|||||||
gFFI.chatModel.changeCurrentKey(key);
|
gFFI.chatModel.changeCurrentKey(key);
|
||||||
}
|
}
|
||||||
if (_isShowCMChatPage) {
|
if (_isShowCMChatPage) {
|
||||||
_isShowCMChatPage = !_isShowCMChatPage;
|
|
||||||
notifyListeners();
|
|
||||||
await windowManager.show();
|
|
||||||
await windowManager.setSizeAlignment(
|
await windowManager.setSizeAlignment(
|
||||||
kConnectionManagerWindowSizeClosedChat, Alignment.topRight);
|
kConnectionManagerWindowSizeClosedChat, Alignment.topRight);
|
||||||
|
await windowManager.show();
|
||||||
|
_isShowCMChatPage = !_isShowCMChatPage;
|
||||||
|
notifyListeners();
|
||||||
} else {
|
} else {
|
||||||
requestChatInputFocus();
|
requestChatInputFocus();
|
||||||
await windowManager.show();
|
|
||||||
await windowManager.setSizeAlignment(
|
await windowManager.setSizeAlignment(
|
||||||
kConnectionManagerWindowSizeOpenChat, Alignment.topRight);
|
kConnectionManagerWindowSizeOpenChat, Alignment.topRight);
|
||||||
|
await windowManager.show();
|
||||||
_isShowCMChatPage = !_isShowCMChatPage;
|
_isShowCMChatPage = !_isShowCMChatPage;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user