mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
open multi windows, add remote toolbar option
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
@@ -1218,14 +1218,14 @@ impl LoginConfigHandler {
|
||||
self.save_config(config);
|
||||
}
|
||||
|
||||
/// Save "use_all_my_monitors_when_connecting" ("", "Y") to the current config.
|
||||
/// Save "use_all_my_displays_for_the_remote_session" ("", "Y") to the current config.
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `value` - The "use_all_my_monitors_when_connecting" value ("", "Y").
|
||||
pub fn save_use_all_my_monitors_when_connecting(&mut self, value: String) {
|
||||
/// * `value` - The "use_all_my_displays_for_the_remote_session" value ("", "Y").
|
||||
pub fn save_use_all_my_displays_for_the_remote_session(&mut self, value: String) {
|
||||
let mut config = self.load_config();
|
||||
config.use_all_my_monitors_when_connecting = value;
|
||||
config.use_all_my_displays_for_the_remote_session = value;
|
||||
self.save_config(config);
|
||||
}
|
||||
|
||||
|
||||
@@ -355,19 +355,19 @@ pub fn session_set_displays_as_individual_windows(session_id: SessionID, value:
|
||||
}
|
||||
}
|
||||
|
||||
pub fn session_get_use_all_my_monitors_when_connecting(
|
||||
pub fn session_get_use_all_my_displays_for_the_remote_session(
|
||||
session_id: SessionID,
|
||||
) -> SyncReturn<Option<String>> {
|
||||
if let Some(session) = sessions::get_session_by_session_id(&session_id) {
|
||||
SyncReturn(Some(session.get_use_all_my_monitors_when_connecting()))
|
||||
SyncReturn(Some(session.get_use_all_my_displays_for_the_remote_session()))
|
||||
} else {
|
||||
SyncReturn(None)
|
||||
}
|
||||
}
|
||||
|
||||
pub fn session_set_use_all_my_monitors_when_connecting(session_id: SessionID, value: String) {
|
||||
pub fn session_set_use_all_my_displays_for_the_remote_session(session_id: SessionID, value: String) {
|
||||
if let Some(session) = sessions::get_session_by_session_id(&session_id) {
|
||||
session.save_use_all_my_monitors_when_connecting(value);
|
||||
session.save_use_all_my_displays_for_the_remote_session(value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -240,8 +240,8 @@ impl<T: InvokeUiSession> Session<T> {
|
||||
self.lc.read().unwrap().displays_as_individual_windows.clone()
|
||||
}
|
||||
|
||||
pub fn get_use_all_my_monitors_when_connecting(&self) -> String {
|
||||
self.lc.read().unwrap().use_all_my_monitors_when_connecting.clone()
|
||||
pub fn get_use_all_my_displays_for_the_remote_session(&self) -> String {
|
||||
self.lc.read().unwrap().use_all_my_displays_for_the_remote_session.clone()
|
||||
}
|
||||
|
||||
pub fn save_reverse_mouse_wheel(&self, value: String) {
|
||||
@@ -252,8 +252,8 @@ impl<T: InvokeUiSession> Session<T> {
|
||||
self.lc.write().unwrap().save_displays_as_individual_windows(value);
|
||||
}
|
||||
|
||||
pub fn save_use_all_my_monitors_when_connecting(&self, value: String) {
|
||||
self.lc.write().unwrap().save_use_all_my_monitors_when_connecting(value);
|
||||
pub fn save_use_all_my_displays_for_the_remote_session(&self, value: String) {
|
||||
self.lc.write().unwrap().save_use_all_my_displays_for_the_remote_session(value);
|
||||
}
|
||||
|
||||
pub fn save_view_style(&self, value: String) {
|
||||
|
||||
Reference in New Issue
Block a user