File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff 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
684689MainWindow::~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 ());
You can’t perform that action at this time.
0 commit comments