mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-03-03 19:59:26 -05:00
Hide status bar on WelcomeScreen
This commit is contained in:
parent
2fc24be331
commit
4acb3774e6
@ -679,6 +679,11 @@ MainWindow::MainWindow()
|
|||||||
|
|
||||||
restoreConfigState();
|
restoreConfigState();
|
||||||
updateMenuActionState();
|
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()
|
MainWindow::~MainWindow()
|
||||||
@ -1159,8 +1164,10 @@ void MainWindow::switchToDatabases()
|
|||||||
{
|
{
|
||||||
if (m_ui->tabWidget->currentIndex() == -1) {
|
if (m_ui->tabWidget->currentIndex() == -1) {
|
||||||
m_ui->stackedWidget->setCurrentIndex(WelcomeScreen);
|
m_ui->stackedWidget->setCurrentIndex(WelcomeScreen);
|
||||||
|
statusBar()->hide();
|
||||||
} else {
|
} else {
|
||||||
m_ui->stackedWidget->setCurrentIndex(DatabaseTabScreen);
|
m_ui->stackedWidget->setCurrentIndex(DatabaseTabScreen);
|
||||||
|
statusBar()->show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1269,8 +1276,10 @@ void MainWindow::databaseTabChanged(int tabIndex)
|
|||||||
{
|
{
|
||||||
if (tabIndex != -1 && m_ui->stackedWidget->currentIndex() == WelcomeScreen) {
|
if (tabIndex != -1 && m_ui->stackedWidget->currentIndex() == WelcomeScreen) {
|
||||||
m_ui->stackedWidget->setCurrentIndex(DatabaseTabScreen);
|
m_ui->stackedWidget->setCurrentIndex(DatabaseTabScreen);
|
||||||
|
statusBar()->show();
|
||||||
} else if (tabIndex == -1 && m_ui->stackedWidget->currentIndex() == DatabaseTabScreen) {
|
} else if (tabIndex == -1 && m_ui->stackedWidget->currentIndex() == DatabaseTabScreen) {
|
||||||
m_ui->stackedWidget->setCurrentIndex(WelcomeScreen);
|
m_ui->stackedWidget->setCurrentIndex(WelcomeScreen);
|
||||||
|
statusBar()->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
m_actionMultiplexer.setCurrentObject(m_ui->tabWidget->currentDatabaseWidget());
|
m_actionMultiplexer.setCurrentObject(m_ui->tabWidget->currentDatabaseWidget());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user