[education/rkward] rkward: Make sure to hide old status bar.
Thomas Friedrichsmeier
null at kde.org
Mon Mar 21 17:12:31 GMT 2022
Git commit 0f34c3a0061349a13709fd03a55aa2de8dd853b0 by Thomas Friedrichsmeier.
Committed on 21/03/2022 at 17:12.
Pushed by tfry into branch 'master'.
Make sure to hide old status bar.
M +2 -1 rkward/rkward.cpp
https://invent.kde.org/education/rkward/commit/0f34c3a0061349a13709fd03a55aa2de8dd853b0
diff --git a/rkward/rkward.cpp b/rkward/rkward.cpp
index 8f6f52eb..81d0c4e2 100644
--- a/rkward/rkward.cpp
+++ b/rkward/rkward.cpp
@@ -730,7 +730,7 @@ void RKWardMainWindow::initStatusBar () {
// The regular status bar is broken in KF5 (since when? At least 5.68.0), but also it takes up too much space.
// Instead, we use a right-aligned bar merged into the bottom toolbar -> no space wasted.
- statusBar()->hide();
+ //statusBar()->hide(); -> after geomtry has been set
auto realbar = RKWorkplace::mainWorkplace()->statusBar();
connect(statusBar(), &QStatusBar::messageChanged, [this](const QString &message) {
if(message.isEmpty()) updateCWD();
@@ -804,6 +804,7 @@ void RKWardMainWindow::readOptions () {
fileOpenRecentWorkspace->loadEntries (config->group ("Recent Files"));
fileOpenRecent->setMaxItems (RKSettingsModuleCommandEditor::maxNumRecentFiles ());
fileOpenRecent->loadEntries (config->group ("Recent Command Files"));
+ statusBar()->hide();
}
More information about the rkward-tracker
mailing list