mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-17 13:35:50 +00:00
fix saving peer window pos
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
@@ -215,6 +215,18 @@ pub fn get_peer_flutter_config(id: String, name: String) -> String {
|
||||
c.ui_flutter.get(&name).unwrap_or(&"".to_owned()).to_owned()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
#[cfg(feature = "flutter")]
|
||||
pub fn set_peer_flutter_config(id: String, name: String, value: String) {
|
||||
let mut c = PeerConfig::load(&id);
|
||||
if value.is_empty() {
|
||||
c.ui_flutter.remove(&name);
|
||||
} else {
|
||||
c.ui_flutter.insert(name, value);
|
||||
}
|
||||
c.store(&id);
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn set_peer_option(id: String, name: String, value: String) {
|
||||
let mut c = PeerConfig::load(&id);
|
||||
|
||||
Reference in New Issue
Block a user