remove share rdp from strategy, useless and leading to confusion
This commit is contained in:
		
							parent
							
								
									8ff24d876c
								
							
						
					
					
						commit
						b5a47efe8e
					
				| @ -150,23 +150,11 @@ fn handle_config_options(config_options: HashMap<String, String>) { | ||||
|     config_options | ||||
|         .iter() | ||||
|         .map(|(k, v)| { | ||||
|             if k == "allow-share-rdp" { | ||||
|                 // only changes made after installation take effect.
 | ||||
|                 #[cfg(windows)] | ||||
|                 if crate::platform::is_installed() { | ||||
|                     let current = crate::ui_interface::is_share_rdp(); | ||||
|                     let set = v == "Y"; | ||||
|                     if current != set { | ||||
|                         crate::platform::windows::set_share_rdp(set); | ||||
|                     } | ||||
|                 } | ||||
|             } else { | ||||
|                 if v.is_empty() { | ||||
|                     options.remove(k); | ||||
|                 } else { | ||||
|                     options.insert(k.to_string(), v.to_string()); | ||||
|                 } | ||||
|             } | ||||
|         }) | ||||
|         .count(); | ||||
|     Config::set_options(options); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user