mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-02 14:52:55 -08:00
Add option to disable database lock when switching user on macOS (#9707)
This commit is contained in:
1 parent
41de1dff2d
commit
e565f89d47
11 files changed
+42
-12
No files matched your search
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2023 KeePassXC Team <[email protected]>
|
||||
* Copyright (C) 2012 Felix Geyer <[email protected]>
|
||||
* Copyright (C) 2017 KeePassXC Team <[email protected]>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -301,6 +301,13 @@ void ApplicationSettingsWidget::loadSettings()
|
||||
&& config()->get(Config::Security_LockDatabaseMinimize).toBool());
|
||||
m_secUi->lockDatabaseOnScreenLockCheckBox->setChecked(
|
||||
config()->get(Config::Security_LockDatabaseScreenLock).toBool());
|
||||
#if defined(Q_OS_MACOS)
|
||||
m_secUi->lockDatabasesOnUserSwitchCheckBox->setVisible(true);
|
||||
#else
|
||||
m_secUi->lockDatabasesOnUserSwitchCheckBox->setVisible(false);
|
||||
#endif
|
||||
m_secUi->lockDatabasesOnUserSwitchCheckBox->setChecked(
|
||||
config()->get(Config::Security_LockDatabaseOnUserSwitch).toBool());
|
||||
m_secUi->fallbackToSearch->setChecked(config()->get(Config::Security_IconDownloadFallback).toBool());
|
||||
|
||||
m_secUi->passwordsHiddenCheckBox->setChecked(config()->get(Config::Security_PasswordsHidden).toBool());
|
||||
@@ -421,6 +428,7 @@ void ApplicationSettingsWidget::saveSettings()
|
||||
config()->set(Config::Security_LockDatabaseIdleSeconds, m_secUi->lockDatabaseIdleSpinBox->value());
|
||||
config()->set(Config::Security_LockDatabaseMinimize, m_secUi->lockDatabaseMinimizeCheckBox->isChecked());
|
||||
config()->set(Config::Security_LockDatabaseScreenLock, m_secUi->lockDatabaseOnScreenLockCheckBox->isChecked());
|
||||
config()->set(Config::Security_LockDatabaseOnUserSwitch, m_secUi->lockDatabasesOnUserSwitchCheckBox->isChecked());
|
||||
config()->set(Config::Security_IconDownloadFallback, m_secUi->fallbackToSearch->isChecked());
|
||||
|
||||
config()->set(Config::Security_PasswordsHidden, m_secUi->passwordsHiddenCheckBox->isChecked());
|
||||
|
||||
Reference in new issue
Block a user