mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-22 12:41:14 +03:00
fix: sciter, advanced options, UI (#13429)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -10,6 +10,18 @@ var is_file_transfer;
|
||||
var is_xfce = false;
|
||||
try { is_xfce = handler.is_xfce(); } catch(e) {}
|
||||
|
||||
const incoming_only_width = 180;
|
||||
const outgoing_only = handler.is_outgoing_only();
|
||||
const incoming_only = handler.is_incoming_only();
|
||||
const disable_installation = handler.is_disable_installation();
|
||||
const disable_account = handler.is_disable_account();
|
||||
const disable_settings = handler.is_disable_settings();
|
||||
const is_custom_client = handler.is_custom_client();
|
||||
const disable_ab = handler.is_disable_ab();
|
||||
const hide_server_settings = handler.get_builtin_option("hide-server-settings") == "Y";
|
||||
const hide_proxy_settings = handler.get_builtin_option("hide-proxy-settings") == "Y";
|
||||
const hide_websocket_settings = handler.get_builtin_option("hide-websocket-settings") == "Y";
|
||||
|
||||
function isEnterKey(evt) {
|
||||
return (evt.keyCode == Event.VK_ENTER ||
|
||||
(is_osx && evt.keyCode == 0x4C) ||
|
||||
@@ -245,6 +257,10 @@ function msgbox(type, title, content, link="", callback=null, height=180, width=
|
||||
try { autoLogin = handler.get_option("auto-login") != ''; } catch(e) {}
|
||||
width += is_xfce ? 50 : 0;
|
||||
height += is_xfce ? 50 : 0;
|
||||
if (incoming_only) {
|
||||
var maxw = scaleIt(incoming_only_width);
|
||||
if (width > maxw) width = maxw;
|
||||
}
|
||||
|
||||
if (type.indexOf("input-password") >= 0) {
|
||||
callback = function (res) {
|
||||
|
||||
Reference in New Issue
Block a user