Disable save button when viewing non-database screens

* Fixes #11662 - disable the save button when viewing Password Generator and Application Settings to restore previous behavior of toolbar
This commit is contained in:
Jonathan White 2025-05-17 16:36:43 -04:00
parent 5dfcc72f98
commit 9baf77cbc4

View file

@ -1017,7 +1017,7 @@ void MainWindow::updateMenuActionState()
m_ui->actionGroupDownloadFavicons->setEnabled(groupSelected && groupHasEntries && !inRecycleBin);
// Database Menu
m_ui->actionDatabaseSave->setEnabled(m_ui->tabWidget->canSave());
m_ui->actionDatabaseSave->setEnabled(databaseUnlocked && m_ui->tabWidget->canSave());
m_ui->actionDatabaseSaveAs->setEnabled(databaseUnlocked);
m_ui->actionDatabaseSaveBackup->setEnabled(databaseUnlocked);
m_ui->actionDatabaseClose->setEnabled(dbWidget);