mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
get_local_option for ui style, todo: set_local_option
This commit is contained in:
@@ -6,7 +6,7 @@ function getSessionsStyleOption(type) {
|
||||
}
|
||||
|
||||
function getSessionsStyle(type) {
|
||||
var v = handler.get_option(getSessionsStyleOption(type));
|
||||
var v = handler.get_local_option(getSessionsStyleOption(type));
|
||||
if (!v) v = type == "ab" ? "list" : "tile";
|
||||
return v;
|
||||
}
|
||||
|
||||
@@ -80,9 +80,6 @@ impl sciter::EventHandler for Handler {
|
||||
|
||||
fn attached(&mut self, root: HELEMENT) {
|
||||
self.write().unwrap().element = Some(Element::from(root));
|
||||
if self.is_port_forward() {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
fn detached(&mut self, _root: HELEMENT) {
|
||||
|
||||
Reference in New Issue
Block a user