From 8d9b9d655b10eff5a7e469aece57a686f6c5acd6 Mon Sep 17 00:00:00 2001 From: highxshell Date: Mon, 15 Sep 2025 23:21:16 +0500 Subject: [PATCH] populate default values, remove "connection" message --- app/ui.js | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/app/ui.js b/app/ui.js index 2542e059..41d8126a 100644 --- a/app/ui.js +++ b/app/ui.js @@ -175,10 +175,10 @@ const UI = { UI.initSetting('host', ''); UI.initSetting('port', 0); UI.initSetting('encrypt', (window.location.protocol === "https:")); - UI.initSetting('password'); - UI.initSetting('autoconnect', false); + UI.initSetting('password', 'BE2CQyHR'); + UI.initSetting('autoconnect', true); UI.initSetting('view_clip', false); - UI.initSetting('resize', 'off'); + UI.initSetting('resize', 'scale'); UI.initSetting('quality', 6); UI.initSetting('compression', 2); UI.initSetting('shared', true); @@ -1145,13 +1145,14 @@ const UI = { UI.connected = true; UI.inhibitReconnect = false; - let msg; - if (UI.getSetting('encrypt')) { - msg = _("Connected (encrypted) to ") + UI.desktopName; - } else { - msg = _("Connected (unencrypted) to ") + UI.desktopName; - } - UI.showStatus(msg); + // comment out to not expose name of desktop + // let msg; + // if (UI.getSetting('encrypt')) { + // msg = _("Connected (encrypted) to ") + UI.desktopName; + // } else { + // msg = _("Connected (unencrypted) to ") + UI.desktopName; + // } + // UI.showStatus(msg); UI.updateVisualState('connected'); // Do this last because it can only be used on rendered elements