Skip to content

Commit

Permalink
Only show expiry warning on first DB unlock
Browse files Browse the repository at this point in the history
  • Loading branch information
ba32107 committed Jan 22, 2022
1 parent adad1bc commit 14a9ea5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/DatabaseWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,8 @@ void DatabaseWidget::loadDatabase(bool accepted)
switchToMainView();
processAutoOpen();

if (config()->get(Config::GUI_ShowExpiredEntriesOnDatabaseUnlock).toBool()) {
auto firstDatabaseUnlock = m_groupBeforeLock == nullptr;
if (firstDatabaseUnlock && config()->get(Config::GUI_ShowExpiredEntriesOnDatabaseUnlock).toBool()) {
int expiryAlertOffset = config()->get(Config::GUI_ShowExpiredEntriesOnDatabaseUnlockOffsetDays).toInt();
auto expiringEntriesGroup = m_db->createExpiredEntriesGroup(expiryAlertOffset);

Expand Down

0 comments on commit 14a9ea5

Please sign in to comment.