mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Disable recent databases menu when in settings widget.
This commit is contained in:
parent
9f21b54c4e
commit
53ce522c08
@ -262,9 +262,11 @@ void MainWindow::setMenuActionState(DatabaseWidget::Mode mode)
|
|||||||
m_ui->actionDatabaseClose->setEnabled(false);
|
m_ui->actionDatabaseClose->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_ui->actionDatabaseNew->setEnabled(inDatabaseTabWidget || inWelcomeWidget);
|
bool inDatabaseTabWidgetOrWelcomeWidget = inDatabaseTabWidget || inWelcomeWidget;
|
||||||
m_ui->actionDatabaseOpen->setEnabled(inDatabaseTabWidget || inWelcomeWidget);
|
m_ui->actionDatabaseNew->setEnabled(inDatabaseTabWidgetOrWelcomeWidget);
|
||||||
m_ui->actionImportKeePass1->setEnabled(inDatabaseTabWidget || inWelcomeWidget);
|
m_ui->actionDatabaseOpen->setEnabled(inDatabaseTabWidgetOrWelcomeWidget);
|
||||||
|
m_ui->menuRecentDatabases->setEnabled(inDatabaseTabWidgetOrWelcomeWidget);
|
||||||
|
m_ui->actionImportKeePass1->setEnabled(inDatabaseTabWidgetOrWelcomeWidget);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::updateWindowTitle()
|
void MainWindow::updateWindowTitle()
|
||||||
|
Loading…
Reference in New Issue
Block a user