Skip to content

Commit

Permalink
Merge pull request #140 from cristian64/scanner_action_state_refix
Browse files Browse the repository at this point in the history
Use splitter's section size to determine whether scanner pane is visible.
  • Loading branch information
dreamsyntax authored May 16, 2024
2 parents 8e5fd21 + d31665a commit 62f2a5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/GUI/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void MainWindow::makeMenus()
m_actScanner->setCheckable(true);
QTimer::singleShot(0, [this]() {
QSignalBlocker signalBlocker(m_actScanner);
m_actScanner->setChecked(m_scanner->isVisible());
m_actScanner->setChecked(m_splitter->sizes()[0] > 0);
});

m_actQuit = new QAction(tr("&Quit"), this);
Expand Down

0 comments on commit 62f2a5f

Please sign in to comment.