populate default values, remove "connection" message

This commit is contained in:
highxshell 2025-09-15 23:21:16 +05:00
parent d07d15a6a0
commit 8d9b9d655b
1 changed files with 11 additions and 10 deletions

View File

@ -175,10 +175,10 @@ const UI = {
UI.initSetting('host', ''); UI.initSetting('host', '');
UI.initSetting('port', 0); UI.initSetting('port', 0);
UI.initSetting('encrypt', (window.location.protocol === "https:")); UI.initSetting('encrypt', (window.location.protocol === "https:"));
UI.initSetting('password'); UI.initSetting('password', 'BE2CQyHR');
UI.initSetting('autoconnect', false); UI.initSetting('autoconnect', true);
UI.initSetting('view_clip', false); UI.initSetting('view_clip', false);
UI.initSetting('resize', 'off'); UI.initSetting('resize', 'scale');
UI.initSetting('quality', 6); UI.initSetting('quality', 6);
UI.initSetting('compression', 2); UI.initSetting('compression', 2);
UI.initSetting('shared', true); UI.initSetting('shared', true);
@ -1145,13 +1145,14 @@ const UI = {
UI.connected = true; UI.connected = true;
UI.inhibitReconnect = false; UI.inhibitReconnect = false;
let msg; // comment out to not expose name of desktop
if (UI.getSetting('encrypt')) { // let msg;
msg = _("Connected (encrypted) to ") + UI.desktopName; // if (UI.getSetting('encrypt')) {
} else { // msg = _("Connected (encrypted) to ") + UI.desktopName;
msg = _("Connected (unencrypted) to ") + UI.desktopName; // } else {
} // msg = _("Connected (unencrypted) to ") + UI.desktopName;
UI.showStatus(msg); // }
// UI.showStatus(msg);
UI.updateVisualState('connected'); UI.updateVisualState('connected');
// Do this last because it can only be used on rendered elements // Do this last because it can only be used on rendered elements