chore: fix some typos (#7518)
Signed-off-by: crazeteam <lilujing@outlook.com>
This commit is contained in:
parent
85f387bfb9
commit
4f3de4cf54
@ -286,7 +286,7 @@ impl DesktopManager {
|
|||||||
}
|
}
|
||||||
return Ok(i);
|
return Ok(i);
|
||||||
}
|
}
|
||||||
bail!("No avaliable display found in range {:?}", display_range)
|
bail!("No available display found in range {:?}", display_range)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
@ -80,8 +80,8 @@ pub(super) fn check_display_changed(
|
|||||||
let lock = SYNC_DISPLAYS.lock().unwrap();
|
let lock = SYNC_DISPLAYS.lock().unwrap();
|
||||||
// If plugging out a monitor && lock.displays.get(idx) is None.
|
// If plugging out a monitor && lock.displays.get(idx) is None.
|
||||||
// 1. The client version < 1.2.4. The client side has to reconnect.
|
// 1. The client version < 1.2.4. The client side has to reconnect.
|
||||||
// 2. The client version > 1.2.4, The client side can handle the case becuase sync peer info message will be sent.
|
// 2. The client version > 1.2.4, The client side can handle the case because sync peer info message will be sent.
|
||||||
// But it is acceptable to for the user to reconnect manually, becuase the monitor is unplugged.
|
// But it is acceptable to for the user to reconnect manually, because the monitor is unplugged.
|
||||||
let d = lock.displays.get(idx)?;
|
let d = lock.displays.get(idx)?;
|
||||||
if ndisplay != lock.displays.len() {
|
if ndisplay != lock.displays.len() {
|
||||||
return Some(d.clone());
|
return Some(d.clone());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user