We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents deb1c19 + 5d0384f commit b39ba92Copy full SHA for b39ba92
src/hbbs_http/sync.rs
@@ -147,10 +147,22 @@ fn handle_config_options(config_options: HashMap<String, String>) {
147
config_options
148
.iter()
149
.map(|(k, v)| {
150
- if v.is_empty() {
151
- options.remove(k);
+ if k == "allow-share-rdp" {
+ // only changes made after installation take effect.
152
+ #[cfg(windows)]
153
+ if crate::ui_interface::is_rdp_service_open() {
154
+ let current = crate::ui_interface::is_share_rdp();
155
+ let set = v == "Y";
156
+ if current != set {
157
+ crate::platform::windows::set_share_rdp(set);
158
+ }
159
160
} else {
- options.insert(k.to_string(), v.to_string());
161
+ if v.is_empty() {
162
+ options.remove(k);
163
+ } else {
164
+ options.insert(k.to_string(), v.to_string());
165
166
}
167
})
168
.count();
0 commit comments