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:
@@ -291,11 +291,11 @@ pub struct PeerConfig {
|
||||
)]
|
||||
pub displays_as_individual_windows: String,
|
||||
#[serde(
|
||||
default = "PeerConfig::default_use_all_my_monitors_when_connecting",
|
||||
deserialize_with = "PeerConfig::deserialize_use_all_my_monitors_when_connecting",
|
||||
default = "PeerConfig::default_use_all_my_displays_for_the_remote_session",
|
||||
deserialize_with = "PeerConfig::deserialize_use_all_my_displays_for_the_remote_session",
|
||||
skip_serializing_if = "String::is_empty"
|
||||
)]
|
||||
pub use_all_my_monitors_when_connecting: String,
|
||||
pub use_all_my_displays_for_the_remote_session: String,
|
||||
|
||||
#[serde(
|
||||
default,
|
||||
@@ -341,7 +341,7 @@ impl Default for PeerConfig {
|
||||
view_only: Default::default(),
|
||||
reverse_mouse_wheel: Self::default_reverse_mouse_wheel(),
|
||||
displays_as_individual_windows: Self::default_displays_as_individual_windows(),
|
||||
use_all_my_monitors_when_connecting: Self::default_use_all_my_monitors_when_connecting(
|
||||
use_all_my_displays_for_the_remote_session: Self::default_use_all_my_displays_for_the_remote_session(
|
||||
),
|
||||
custom_resolutions: Default::default(),
|
||||
options: Self::default_options(),
|
||||
@@ -1165,9 +1165,9 @@ impl PeerConfig {
|
||||
UserDefaultConfig::read().get("displays_as_individual_windows")
|
||||
);
|
||||
serde_field_string!(
|
||||
default_use_all_my_monitors_when_connecting,
|
||||
deserialize_use_all_my_monitors_when_connecting,
|
||||
UserDefaultConfig::read().get("use_all_my_monitors_when_connecting")
|
||||
default_use_all_my_displays_for_the_remote_session,
|
||||
deserialize_use_all_my_displays_for_the_remote_session,
|
||||
UserDefaultConfig::read().get("use_all_my_displays_for_the_remote_session")
|
||||
);
|
||||
|
||||
fn default_custom_image_quality() -> Vec<i32> {
|
||||
|
||||
Reference in New Issue
Block a user