[feat] enable screen lock on disconnect by default

This commit is contained in:
dijunkun
2026-10-25 03:07:13 +08:00
parent f3d8689b55
commit bdd04603c7
3 changed files with 3 additions and 3 deletions
@@ -138,7 +138,7 @@ int ConfigCenter::Load() {
enable_privacy_screen_.store(
ini_->GetBoolValue(section_, "enable_privacy_screen", true));
lock_on_disconnect_.store(
ini_->GetBoolValue(section_, "lock_on_disconnect", false));
ini_->GetBoolValue(section_, "lock_on_disconnect", true));
save_remote_previews_.store(
ini_->GetBoolValue(section_, "save_remote_previews", true));
portable_service_prompt_suppressed_ =
@@ -105,7 +105,7 @@ class ConfigCenter {
bool enable_autostart_ = false;
bool enable_daemon_ = false;
std::atomic<bool> enable_privacy_screen_{true};
std::atomic<bool> lock_on_disconnect_{false};
std::atomic<bool> lock_on_disconnect_{true};
std::atomic<bool> save_remote_previews_{true};
bool portable_service_prompt_suppressed_ = false;
std::string sponsorship_prompt_dismissed_version_;
+1 -1
View File
@@ -647,7 +647,7 @@ export component MainWindow inherits Window {
in property <bool> privacy-setting-available: false;
in-out property <bool> privacy-on-connect-enabled: true;
in property <bool> lock-on-disconnect-available: false;
in-out property <bool> lock-on-disconnect-enabled: false;
in-out property <bool> lock-on-disconnect-enabled: true;
in-out property <string> file-save-path: "";
in-out property <string> server-host: "";
in-out property <string> server-port: "";