refact, separate remote window, try active session

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow
2023-08-02 20:38:09 +08:00
parent f495bf105f
commit 773a74e2a9
12 changed files with 54 additions and 42 deletions

View File

@@ -367,7 +367,7 @@ class ChatModel with ChangeNotifier {
// not minisized: add count
if (await WindowController.fromWindowId(stateGlobal.windowId)
.isMinimized()) {
window_on_top(stateGlobal.windowId);
windowOnTop(stateGlobal.windowId);
if (notSelected) {
tabController.jumpTo(index);
}
@@ -386,7 +386,7 @@ class ChatModel with ChangeNotifier {
return;
}
if (isDesktop) {
window_on_top(null);
windowOnTop(null);
// disable auto jumpTo other tab when hasFocus, and mark unread message
final currentSelectedTab =
session.serverModel.tabController.state.value.selectedTabInfo;