mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
portable service only run on main display (#8525)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -438,20 +438,6 @@ class FfiModel with ChangeNotifier {
|
||||
_handlePortableServiceRunning(String peerId, Map<String, dynamic> evt) {
|
||||
final running = evt['running'] == 'true';
|
||||
parent.target?.elevationModel.onPortableServiceRunning(running);
|
||||
if (running) {
|
||||
if (pi.primaryDisplay != kInvalidDisplayIndex) {
|
||||
if (pi.currentDisplay != pi.primaryDisplay) {
|
||||
// Notify to switch display
|
||||
msgBox(sessionId, 'custom-nook-nocancel-hasclose-info', 'Prompt',
|
||||
'elevated_switch_display_msg', '', parent.target!.dialogManager);
|
||||
bind.sessionSwitchDisplay(
|
||||
isDesktop: isDesktop,
|
||||
sessionId: sessionId,
|
||||
value: Int32List.fromList([pi.primaryDisplay]),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
handleAliasChanged(Map<String, dynamic> evt) {
|
||||
|
||||
Reference in New Issue
Block a user