|
|
@ -1241,17 +1241,17 @@ void MainWindow::optionsSaved() |
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::showStatusBar(bool show) |
|
|
|
void MainWindow::showStatusBar(bool show) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (show && !m_statusBar) { |
|
|
|
if (!show) { |
|
|
|
|
|
|
|
// Remove status bar
|
|
|
|
|
|
|
|
setStatusBar(nullptr); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else if (!m_statusBar) { |
|
|
|
// Create status bar
|
|
|
|
// Create status bar
|
|
|
|
m_statusBar = new StatusBar; |
|
|
|
m_statusBar = new StatusBar; |
|
|
|
connect(m_statusBar.data(), &StatusBar::connectionButtonClicked, this, &MainWindow::showConnectionSettings); |
|
|
|
connect(m_statusBar.data(), &StatusBar::connectionButtonClicked, this, &MainWindow::showConnectionSettings); |
|
|
|
connect(m_statusBar.data(), &StatusBar::alternativeSpeedsButtonClicked, this, &MainWindow::toggleAlternativeSpeeds); |
|
|
|
connect(m_statusBar.data(), &StatusBar::alternativeSpeedsButtonClicked, this, &MainWindow::toggleAlternativeSpeeds); |
|
|
|
setStatusBar(m_statusBar); |
|
|
|
setStatusBar(m_statusBar); |
|
|
|
} |
|
|
|
} |
|
|
|
else if (!show && m_statusBar) { |
|
|
|
|
|
|
|
// Remove status bar
|
|
|
|
|
|
|
|
setStatusBar(nullptr); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::loadPreferences(bool configureSession) |
|
|
|
void MainWindow::loadPreferences(bool configureSession) |
|
|
|