mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
fix plugout virtual monitor
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -927,7 +927,9 @@ fn try_get_displays() -> ResultType<Vec<Display>> {
|
||||
}
|
||||
} else if displays.len() > 1 {
|
||||
// If more than one displays exists, close RustDeskVirtualDisplay
|
||||
let _res = virtual_display_manager::plug_in_headless();
|
||||
if virtual_display_manager::plug_out_headless() {
|
||||
displays = Display::all()?;
|
||||
}
|
||||
}
|
||||
Ok(displays)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user