mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
refact, separate remote window, try active session
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -260,7 +260,7 @@ class FfiModel with ChangeNotifier {
|
||||
});
|
||||
break;
|
||||
default:
|
||||
window_on_top(null);
|
||||
windowOnTop(null);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -473,7 +473,7 @@ class ServerModel with ChangeNotifier {
|
||||
onTap: () {},
|
||||
page: desktop.buildConnectionCard(client)));
|
||||
Future.delayed(Duration.zero, () async {
|
||||
if (!hideCm) window_on_top(null);
|
||||
if (!hideCm) windowOnTop(null);
|
||||
});
|
||||
// Only do the hidden task when on Desktop.
|
||||
if (client.authorized && isDesktop) {
|
||||
@@ -612,7 +612,7 @@ class ServerModel with ChangeNotifier {
|
||||
if (client.incomingVoiceCall) {
|
||||
// Has incoming phone call, let's set the window on top.
|
||||
Future.delayed(Duration.zero, () {
|
||||
window_on_top(null);
|
||||
windowOnTop(null);
|
||||
});
|
||||
}
|
||||
notifyListeners();
|
||||
|
||||
Reference in New Issue
Block a user