Revert "try fix linux cm abnormal show"
This reverts commit 193426a3c10cb063db644068ac6f0df43c197341.
This commit is contained in:
parent
e927d49aa2
commit
d7ef3df2b3
@ -186,7 +186,7 @@ class ConnectionManagerState extends State<ConnectionManager> {
|
||||
ChatPage(type: ChatPageType.desktopCM)),
|
||||
),
|
||||
)
|
||||
: Expanded(child: Container()),
|
||||
: Offstage(),
|
||||
),
|
||||
SizedBox(
|
||||
width: kConnectionManagerWindowSizeClosedChat.width -
|
||||
|
@ -277,16 +277,16 @@ class ChatModel with ChangeNotifier {
|
||||
gFFI.chatModel.changeCurrentKey(key);
|
||||
}
|
||||
if (_isShowCMChatPage) {
|
||||
await windowManager.setSizeAlignment(
|
||||
kConnectionManagerWindowSizeClosedChat, Alignment.topRight);
|
||||
await windowManager.show();
|
||||
_isShowCMChatPage = !_isShowCMChatPage;
|
||||
notifyListeners();
|
||||
await windowManager.show();
|
||||
await windowManager.setSizeAlignment(
|
||||
kConnectionManagerWindowSizeClosedChat, Alignment.topRight);
|
||||
} else {
|
||||
requestChatInputFocus();
|
||||
await windowManager.show();
|
||||
await windowManager.setSizeAlignment(
|
||||
kConnectionManagerWindowSizeOpenChat, Alignment.topRight);
|
||||
await windowManager.show();
|
||||
_isShowCMChatPage = !_isShowCMChatPage;
|
||||
notifyListeners();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user