Skip to content

Commit 8575cc6

Browse files
committed
Move "Show subgroup entries" option from Settings to View menu
1 parent fe24e18 commit 8575cc6

File tree

5 files changed

+26
-10
lines changed

5 files changed

+26
-10
lines changed

share/translations/keepassxc_en.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5947,6 +5947,10 @@ Are you sure you want to continue with this file?</source>
59475947
<source>Show Toolbar</source>
59485948
<translation type="unfinished"></translation>
59495949
</message>
5950+
<message>
5951+
<source>Show Entries of Subgroups</source>
5952+
<translation type="unfinished"></translation>
5953+
</message>
59505954
<message>
59515955
<source>Show Preview Panel</source>
59525956
<translation type="unfinished"></translation>
@@ -6300,6 +6304,10 @@ Expect some bugs and minor issues, this version is meant for testing purposes.</
63006304
<source>Toggle Show Toolbar</source>
63016305
<translation type="unfinished"></translation>
63026306
</message>
6307+
<message>
6308+
<source>Toggle Show Entries of Subgroups</source>
6309+
<translation type="unfinished"></translation>
6310+
</message>
63036311
<message>
63046312
<source>Toggle Show Preview Panel</source>
63056313
<translation type="unfinished"></translation>

src/gui/ApplicationSettingsWidget.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ void ApplicationSettingsWidget::loadSettings()
218218
m_generalUi->dropToBackgroundOnCopyRadioButton->setChecked(config()->get(Config::DropToBackgroundOnCopy).toBool());
219219
m_generalUi->useGroupIconOnEntryCreationCheckBox->setChecked(
220220
config()->get(Config::UseGroupIconOnEntryCreation).toBool());
221-
m_generalUi->showSubgroupEntriesCheckBox->setChecked(config()->get(Config::GUI_ShowSubgroupEntries).toBool());
222221
m_generalUi->autoTypeEntryTitleMatchCheckBox->setChecked(config()->get(Config::AutoTypeEntryTitleMatch).toBool());
223222
m_generalUi->autoTypeEntryURLMatchCheckBox->setChecked(config()->get(Config::AutoTypeEntryURLMatch).toBool());
224223
m_generalUi->autoTypeHideExpiredEntryCheckBox->setChecked(config()->get(Config::AutoTypeHideExpiredEntry).toBool());
@@ -393,7 +392,6 @@ void ApplicationSettingsWidget::saveSettings()
393392
config()->set(Config::MinimizeOnCopy, m_generalUi->minimizeOnCopyRadioButton->isChecked());
394393
config()->set(Config::DropToBackgroundOnCopy, m_generalUi->dropToBackgroundOnCopyRadioButton->isChecked());
395394
config()->set(Config::UseGroupIconOnEntryCreation, m_generalUi->useGroupIconOnEntryCreationCheckBox->isChecked());
396-
config()->set(Config::GUI_ShowSubgroupEntries, m_generalUi->showSubgroupEntriesCheckBox->isChecked());
397395
config()->set(Config::AutoTypeEntryTitleMatch, m_generalUi->autoTypeEntryTitleMatchCheckBox->isChecked());
398396
config()->set(Config::AutoTypeEntryURLMatch, m_generalUi->autoTypeEntryURLMatchCheckBox->isChecked());
399397
config()->set(Config::AutoTypeHideExpiredEntry, m_generalUi->autoTypeHideExpiredEntryCheckBox->isChecked());

src/gui/ApplicationSettingsWidgetGeneral.ui

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -566,13 +566,6 @@
566566
</property>
567567
</widget>
568568
</item>
569-
<item>
570-
<widget class="QCheckBox" name="showSubgroupEntriesCheckBox">
571-
<property name="text">
572-
<string>Show subgroup entries in entry list view</string>
573-
</property>
574-
</widget>
575-
</item>
576569
<item>
577570
<widget class="QCheckBox" name="minimizeOnOpenUrlCheckBox">
578571
<property name="text">
@@ -1441,7 +1434,6 @@
14411434
<tabstop>EnableCopyOnDoubleClickCheckBox</tabstop>
14421435
<tabstop>openUrlOnDoubleClick</tabstop>
14431436
<tabstop>useGroupIconOnEntryCreationCheckBox</tabstop>
1444-
<tabstop>showSubgroupEntriesCheckBox</tabstop>
14451437
<tabstop>minimizeOnOpenUrlCheckBox</tabstop>
14461438
<tabstop>hideWindowOnCopyCheckBox</tabstop>
14471439
<tabstop>minimizeOnCopyRadioButton</tabstop>

src/gui/MainWindow.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2044,6 +2044,11 @@ void MainWindow::initViewMenu()
20442044
applySettingsChanges();
20452045
});
20462046

2047+
m_ui->actionShowEntriesOfSubgroups->setChecked(config()->get(Config::GUI_ShowSubgroupEntries).toBool());
2048+
connect(m_ui->actionShowEntriesOfSubgroups, &QAction::toggled, this, [](bool checked) {
2049+
config()->set(Config::GUI_ShowSubgroupEntries, checked);
2050+
});
2051+
20472052
m_ui->actionShowGroupPanel->setChecked(!config()->get(Config::GUI_HideGroupPanel).toBool());
20482053
connect(m_ui->actionShowGroupPanel, &QAction::toggled, this, [](bool checked) {
20492054
config()->set(Config::GUI_HideGroupPanel, !checked);

src/gui/MainWindow.ui

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@
399399
<addaction name="actionShowMenubar"/>
400400
<addaction name="actionShowToolbar"/>
401401
<addaction name="separator"/>
402+
<addaction name="actionShowEntriesOfSubgroups"/>
403+
<addaction name="separator"/>
402404
<addaction name="actionHideUsernames"/>
403405
<addaction name="actionHidePasswords"/>
404406
</widget>
@@ -1244,6 +1246,17 @@
12441246
<string notr="true">Ctrl+Shift+A</string>
12451247
</property>
12461248
</action>
1249+
<action name="actionShowEntriesOfSubgroups">
1250+
<property name="checkable">
1251+
<bool>true</bool>
1252+
</property>
1253+
<property name="text">
1254+
<string>Show Entries of Subgroups</string>
1255+
</property>
1256+
<property name="toolTip">
1257+
<string>Toggle Show Entries of Subgroups</string>
1258+
</property>
1259+
</action>
12471260
<action name="actionHideUsernames">
12481261
<property name="checkable">
12491262
<bool>true</bool>

0 commit comments

Comments
 (0)