Skip to content

Commit 4acb377

Browse files
xboxones1droidmonkey
authored andcommitted
Hide status bar on WelcomeScreen
1 parent 2fc24be commit 4acb377

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/gui/MainWindow.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,11 @@ MainWindow::MainWindow()
679679

680680
restoreConfigState();
681681
updateMenuActionState();
682+
683+
// Check the current screen and hide the status bar if it is the WelcomeScreen
684+
if (m_ui->stackedWidget->currentIndex() == WelcomeScreen) {
685+
statusBar()->hide();
686+
}
682687
}
683688

684689
MainWindow::~MainWindow()
@@ -1159,8 +1164,10 @@ void MainWindow::switchToDatabases()
11591164
{
11601165
if (m_ui->tabWidget->currentIndex() == -1) {
11611166
m_ui->stackedWidget->setCurrentIndex(WelcomeScreen);
1167+
statusBar()->hide();
11621168
} else {
11631169
m_ui->stackedWidget->setCurrentIndex(DatabaseTabScreen);
1170+
statusBar()->show();
11641171
}
11651172
}
11661173

@@ -1269,8 +1276,10 @@ void MainWindow::databaseTabChanged(int tabIndex)
12691276
{
12701277
if (tabIndex != -1 && m_ui->stackedWidget->currentIndex() == WelcomeScreen) {
12711278
m_ui->stackedWidget->setCurrentIndex(DatabaseTabScreen);
1279+
statusBar()->show();
12721280
} else if (tabIndex == -1 && m_ui->stackedWidget->currentIndex() == DatabaseTabScreen) {
12731281
m_ui->stackedWidget->setCurrentIndex(WelcomeScreen);
1282+
statusBar()->hide();
12741283
}
12751284

12761285
m_actionMultiplexer.setCurrentObject(m_ui->tabWidget->currentDatabaseWidget());

0 commit comments

Comments
 (0)