This code determines the initial visibility of the toolbar only if KMainWindow::applyMainWindowSettings() fails to restore the main window state from config.
| 356 | // This code determines the initial visibility of the toolbar only if KMainWindow::applyMainWindowSettings() |
| 357 | // fails to restore the main window state from config. |
| 358 | if (hideWhenEmpty) { |
| 359 | updateVisibility(); |
| 360 | connect(m_buttons, &IdealButtonBarWidget::emptyChanged, this, &IdealToolBar::updateVisibility); |
| 361 | } |
| 362 | } |
| 363 | |
| 364 | void updateVisibility() |
nothing calls this directly
no test coverage detected