mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-03-13 01:26:37 -04:00
Hide status bar on WelcomeScreen
This commit is contained in:
parent
da606923e9
commit
18cdbb3f5a
@ -719,6 +719,11 @@ MainWindow::MainWindow()
|
||||
|
||||
restoreConfigState();
|
||||
updateMenuActionState();
|
||||
|
||||
// Check the current screen and hide the status bar if it is the WelcomeScreen
|
||||
if (m_ui->stackedWidget->currentIndex() == WelcomeScreen) {
|
||||
statusBar()->hide();
|
||||
}
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
@ -1198,8 +1203,10 @@ void MainWindow::switchToDatabases()
|
||||
{
|
||||
if (m_ui->tabWidget->currentIndex() == -1) {
|
||||
m_ui->stackedWidget->setCurrentIndex(WelcomeScreen);
|
||||
statusBar()->hide();
|
||||
} else {
|
||||
m_ui->stackedWidget->setCurrentIndex(DatabaseTabScreen);
|
||||
statusBar()->show();
|
||||
}
|
||||
}
|
||||
|
||||
@ -1287,8 +1294,10 @@ void MainWindow::databaseTabChanged(int tabIndex)
|
||||
{
|
||||
if (tabIndex != -1 && m_ui->stackedWidget->currentIndex() == WelcomeScreen) {
|
||||
m_ui->stackedWidget->setCurrentIndex(DatabaseTabScreen);
|
||||
statusBar()->show();
|
||||
} else if (tabIndex == -1 && m_ui->stackedWidget->currentIndex() == DatabaseTabScreen) {
|
||||
m_ui->stackedWidget->setCurrentIndex(WelcomeScreen);
|
||||
statusBar()->hide();
|
||||
}
|
||||
|
||||
m_actionMultiplexer.setCurrentObject(m_ui->tabWidget->currentDatabaseWidget());
|
||||
|
Loading…
x
Reference in New Issue
Block a user