mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Fix saving "Search Wait for Enter" setting
This commit is contained in:
@@ -118,6 +118,7 @@ static const QHash<Config::ConfigKey, ConfigDirective> configStrings = {
|
|||||||
{Config::GUI_CheckForUpdates, {QS("GUI/CheckForUpdates"), Roaming, true}},
|
{Config::GUI_CheckForUpdates, {QS("GUI/CheckForUpdates"), Roaming, true}},
|
||||||
{Config::GUI_CheckForUpdatesNextCheck, {QS("GUI/CheckForUpdatesNextCheck"), Local, 0}},
|
{Config::GUI_CheckForUpdatesNextCheck, {QS("GUI/CheckForUpdatesNextCheck"), Local, 0}},
|
||||||
{Config::GUI_CheckForUpdatesIncludeBetas, {QS("GUI/CheckForUpdatesIncludeBetas"), Roaming, false}},
|
{Config::GUI_CheckForUpdatesIncludeBetas, {QS("GUI/CheckForUpdatesIncludeBetas"), Roaming, false}},
|
||||||
|
{Config::GUI_SearchWaitForEnter, {QS("GUI/SearchWaitForEnter"), Roaming, false}},
|
||||||
{Config::GUI_ShowExpiredEntriesOnDatabaseUnlock, {QS("GUI/ShowExpiredEntriesOnDatabaseUnlock"), Roaming, true}},
|
{Config::GUI_ShowExpiredEntriesOnDatabaseUnlock, {QS("GUI/ShowExpiredEntriesOnDatabaseUnlock"), Roaming, true}},
|
||||||
{Config::GUI_ShowExpiredEntriesOnDatabaseUnlockOffsetDays, {QS("GUI/ShowExpiredEntriesOnDatabaseUnlockOffsetDays"), Roaming, 3}},
|
{Config::GUI_ShowExpiredEntriesOnDatabaseUnlockOffsetDays, {QS("GUI/ShowExpiredEntriesOnDatabaseUnlockOffsetDays"), Roaming, 3}},
|
||||||
{Config::GUI_FontSizeOffset, {QS("GUI/FontSizeOffset"), Local, 0}},
|
{Config::GUI_FontSizeOffset, {QS("GUI/FontSizeOffset"), Local, 0}},
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ public:
|
|||||||
GUI_CompactMode,
|
GUI_CompactMode,
|
||||||
GUI_CheckForUpdates,
|
GUI_CheckForUpdates,
|
||||||
GUI_CheckForUpdatesIncludeBetas,
|
GUI_CheckForUpdatesIncludeBetas,
|
||||||
SearchWaitForEnter,
|
GUI_SearchWaitForEnter,
|
||||||
GUI_ShowExpiredEntriesOnDatabaseUnlock,
|
GUI_ShowExpiredEntriesOnDatabaseUnlock,
|
||||||
GUI_ShowExpiredEntriesOnDatabaseUnlockOffsetDays,
|
GUI_ShowExpiredEntriesOnDatabaseUnlockOffsetDays,
|
||||||
GUI_FontSizeOffset,
|
GUI_FontSizeOffset,
|
||||||
|
|||||||
@@ -72,10 +72,10 @@ SearchWidget::SearchWidget(QWidget* parent)
|
|||||||
m_actionLimitGroup->setChecked(config()->get(Config::SearchLimitGroup).toBool());
|
m_actionLimitGroup->setChecked(config()->get(Config::SearchLimitGroup).toBool());
|
||||||
|
|
||||||
m_actionWaitForEnter = m_searchMenu->addAction(
|
m_actionWaitForEnter = m_searchMenu->addAction(
|
||||||
tr("Press Enter to search"), this, [](bool state) { config()->set(Config::SearchWaitForEnter, state); });
|
tr("Press Enter to search"), this, [](bool state) { config()->set(Config::GUI_SearchWaitForEnter, state); });
|
||||||
m_actionWaitForEnter->setObjectName("actionSearchWaitForEnter");
|
m_actionWaitForEnter->setObjectName("actionSearchWaitForEnter");
|
||||||
m_actionWaitForEnter->setCheckable(true);
|
m_actionWaitForEnter->setCheckable(true);
|
||||||
m_actionWaitForEnter->setChecked(config()->get(Config::SearchWaitForEnter).toBool());
|
m_actionWaitForEnter->setChecked(config()->get(Config::GUI_SearchWaitForEnter).toBool());
|
||||||
|
|
||||||
m_ui->searchIcon->setIcon(icons()->icon("system-search"));
|
m_ui->searchIcon->setIcon(icons()->icon("system-search"));
|
||||||
m_ui->searchEdit->addAction(m_ui->searchIcon, QLineEdit::LeadingPosition);
|
m_ui->searchEdit->addAction(m_ui->searchIcon, QLineEdit::LeadingPosition);
|
||||||
|
|||||||
Reference in New Issue
Block a user