mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-21 04:28:26 -04:00
Add "move to recycle bin without confirmation" setting
This commit is contained in:
parent
c9e7ffadad
commit
de44764efa
5 changed files with 15 additions and 0 deletions
|
@ -138,6 +138,7 @@ static const QHash<Config::ConfigKey, ConfigDirective> configStrings = {
|
||||||
{Config::Security_ResetTouchId, {QS("Security/ResetTouchId"), Roaming, false}},
|
{Config::Security_ResetTouchId, {QS("Security/ResetTouchId"), Roaming, false}},
|
||||||
{Config::Security_ResetTouchIdTimeout, {QS("Security/ResetTouchIdTimeout"), Roaming, 30}},
|
{Config::Security_ResetTouchIdTimeout, {QS("Security/ResetTouchIdTimeout"), Roaming, 30}},
|
||||||
{Config::Security_ResetTouchIdScreenlock,{QS("Security/ResetTouchIdScreenlock"), Roaming, true}},
|
{Config::Security_ResetTouchIdScreenlock,{QS("Security/ResetTouchIdScreenlock"), Roaming, true}},
|
||||||
|
{Config::Security_NoConfirmMoveEntryToRecycleBin,{QS("Security/NoConfirmMoveEntryToRecycleBin"), Roaming, true}},
|
||||||
|
|
||||||
// Browser
|
// Browser
|
||||||
{Config::Browser_Enabled, {QS("Browser/Enabled"), Roaming, false}},
|
{Config::Browser_Enabled, {QS("Browser/Enabled"), Roaming, false}},
|
||||||
|
|
|
@ -119,6 +119,7 @@ public:
|
||||||
Security_ResetTouchId,
|
Security_ResetTouchId,
|
||||||
Security_ResetTouchIdTimeout,
|
Security_ResetTouchIdTimeout,
|
||||||
Security_ResetTouchIdScreenlock,
|
Security_ResetTouchIdScreenlock,
|
||||||
|
Security_NoConfirmMoveEntryToRecycleBin,
|
||||||
|
|
||||||
Browser_Enabled,
|
Browser_Enabled,
|
||||||
Browser_ShowNotification,
|
Browser_ShowNotification,
|
||||||
|
|
|
@ -280,6 +280,8 @@ void ApplicationSettingsWidget::loadSettings()
|
||||||
m_secUi->passwordsRepeatVisibleCheckBox->setChecked(
|
m_secUi->passwordsRepeatVisibleCheckBox->setChecked(
|
||||||
config()->get(Config::Security_PasswordsRepeatVisible).toBool());
|
config()->get(Config::Security_PasswordsRepeatVisible).toBool());
|
||||||
m_secUi->hideNotesCheckBox->setChecked(config()->get(Config::Security_HideNotes).toBool());
|
m_secUi->hideNotesCheckBox->setChecked(config()->get(Config::Security_HideNotes).toBool());
|
||||||
|
m_secUi->NoConfirmMoveEntryToRecycleBinCheckBox->setChecked(
|
||||||
|
config()->get(Config::Security_NoConfirmMoveEntryToRecycleBin).toBool());
|
||||||
|
|
||||||
m_secUi->touchIDResetCheckBox->setChecked(config()->get(Config::Security_ResetTouchId).toBool());
|
m_secUi->touchIDResetCheckBox->setChecked(config()->get(Config::Security_ResetTouchId).toBool());
|
||||||
m_secUi->touchIDResetSpinBox->setValue(config()->get(Config::Security_ResetTouchIdTimeout).toInt());
|
m_secUi->touchIDResetSpinBox->setValue(config()->get(Config::Security_ResetTouchIdTimeout).toInt());
|
||||||
|
@ -379,6 +381,8 @@ void ApplicationSettingsWidget::saveSettings()
|
||||||
config()->set(Config::Security_HidePasswordPreviewPanel, m_secUi->passwordPreviewCleartextCheckBox->isChecked());
|
config()->set(Config::Security_HidePasswordPreviewPanel, m_secUi->passwordPreviewCleartextCheckBox->isChecked());
|
||||||
config()->set(Config::Security_PasswordsRepeatVisible, m_secUi->passwordsRepeatVisibleCheckBox->isChecked());
|
config()->set(Config::Security_PasswordsRepeatVisible, m_secUi->passwordsRepeatVisibleCheckBox->isChecked());
|
||||||
config()->set(Config::Security_HideNotes, m_secUi->hideNotesCheckBox->isChecked());
|
config()->set(Config::Security_HideNotes, m_secUi->hideNotesCheckBox->isChecked());
|
||||||
|
config()->set(Config::Security_NoConfirmMoveEntryToRecycleBin,
|
||||||
|
m_secUi->NoConfirmMoveEntryToRecycleBinCheckBox->isChecked());
|
||||||
|
|
||||||
config()->set(Config::Security_ResetTouchId, m_secUi->touchIDResetCheckBox->isChecked());
|
config()->set(Config::Security_ResetTouchId, m_secUi->touchIDResetCheckBox->isChecked());
|
||||||
config()->set(Config::Security_ResetTouchIdTimeout, m_secUi->touchIDResetSpinBox->value());
|
config()->set(Config::Security_ResetTouchIdTimeout, m_secUi->touchIDResetSpinBox->value());
|
||||||
|
|
|
@ -257,6 +257,13 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="NoConfirmMoveEntryToRecycleBinCheckBox">
|
||||||
|
<property name="text">
|
||||||
|
<string>Move entries to recycle bin without confirmation</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
@ -571,6 +571,8 @@ bool DatabaseWidget::confirmDeleteEntries(QList<Entry*> entries, bool permanent)
|
||||||
MessageBox::Cancel);
|
MessageBox::Cancel);
|
||||||
|
|
||||||
return answer == MessageBox::Delete;
|
return answer == MessageBox::Delete;
|
||||||
|
} else if (config()->get(Config::Security_NoConfirmMoveEntryToRecycleBin).toBool()) {
|
||||||
|
return true;
|
||||||
} else {
|
} else {
|
||||||
QString prompt;
|
QString prompt;
|
||||||
if (entries.size() == 1) {
|
if (entries.size() == 1) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue