mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-24 04:12:20 +08:00
chore: fix some typos in comments (#7752)
Signed-off-by: writegr <wellweek@outlook.com>
This commit is contained in:
parent
4252b5e273
commit
9b2ec62be9
@ -1106,7 +1106,7 @@ pub fn session_start_(
|
||||
) -> ResultType<()> {
|
||||
// is_connected is used to indicate whether to start a peer connection. For two cases:
|
||||
// 1. "Move tab to new window"
|
||||
// 2. multi ui session within the same peer connnection.
|
||||
// 2. multi ui session within the same peer connection.
|
||||
let mut is_connected = false;
|
||||
let mut is_found = false;
|
||||
for s in sessions::get_sessions() {
|
||||
|
@ -277,7 +277,7 @@ impl DesktopManager {
|
||||
}
|
||||
}
|
||||
|
||||
// The logic mainly fron https://github.com/neutrinolabs/xrdp/blob/34fe9b60ebaea59e8814bbc3ca5383cabaa1b869/sesman/session.c#L334.
|
||||
// The logic mainly from https://github.com/neutrinolabs/xrdp/blob/34fe9b60ebaea59e8814bbc3ca5383cabaa1b869/sesman/session.c#L334.
|
||||
fn get_avail_display() -> ResultType<u32> {
|
||||
let display_range = 0..51;
|
||||
for i in display_range.clone() {
|
||||
|
@ -1874,7 +1874,7 @@ pub fn current_resolution(name: &str) -> ResultType<Resolution> {
|
||||
dm.dmSize = std::mem::size_of::<DEVMODEW>() as _;
|
||||
if EnumDisplaySettingsW(device_name.as_ptr(), ENUM_CURRENT_SETTINGS, &mut dm) == 0 {
|
||||
bail!(
|
||||
"failed to get currrent resolution, error {}",
|
||||
"failed to get current resolution, error {}",
|
||||
io::Error::last_os_error()
|
||||
);
|
||||
}
|
||||
|
@ -187,7 +187,7 @@ impl LockModesHandler {
|
||||
fn new(key_event: &KeyEvent) -> Self {
|
||||
let event_caps_enabled = Self::is_modifier_enabled(key_event, ControlKey::CapsLock);
|
||||
// Do not use the following code to detect `local_caps_enabled`.
|
||||
// Because the state of get_key_state will not affect simuation of `VIRTUAL_INPUT_STATE` in this file.
|
||||
// Because the state of get_key_state will not affect simulation of `VIRTUAL_INPUT_STATE` in this file.
|
||||
//
|
||||
// let local_caps_enabled = VirtualInput::get_key_state(
|
||||
// CGEventSourceStateID::CombinedSessionState,
|
||||
|
Loading…
Reference in New Issue
Block a user