mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-29 16:11:01 +03:00
@@ -1980,7 +1980,7 @@ pub(super) fn session_update_virtual_display(session: &FlutterSession, index: i3
|
||||
let mut vdisplays = displays.split(',').collect::<Vec<_>>();
|
||||
let len = vdisplays.len();
|
||||
if index == 0 {
|
||||
// 0 means we cann't toggle the virtual display by index.
|
||||
// 0 means we can't toggle the virtual display by index.
|
||||
vdisplays.remove(vdisplays.len() - 1);
|
||||
} else {
|
||||
if let Some(i) = vdisplays.iter().position(|&x| x == index.to_string()) {
|
||||
|
||||
Reference in New Issue
Block a user