[education/rkward] rkward/windows: Reduce flicker a bit
Thomas Friedrichsmeier
null at kde.org
Mon Jun 24 22:13:02 BST 2024
Git commit 2f799ac72df5a5f5dce8bb49fbb27ce3ea0cd5c8 by Thomas Friedrichsmeier.
Committed on 21/06/2024 at 21:52.
Pushed by tfry into branch 'master'.
Reduce flicker a bit
M +7 -2 rkward/windows/rkmdiwindow.cpp
https://invent.kde.org/education/rkward/-/commit/2f799ac72df5a5f5dce8bb49fbb27ce3ea0cd5c8
diff --git a/rkward/windows/rkmdiwindow.cpp b/rkward/windows/rkmdiwindow.cpp
index 2f5e1a87b..1355318fe 100644
--- a/rkward/windows/rkmdiwindow.cpp
+++ b/rkward/windows/rkmdiwindow.cpp
@@ -374,8 +374,13 @@ void RKMDIWindow::setStatusMessage(const QString& message, RCommand *command) {
if (command) connect(command->notifier(), &RCommandNotifier::commandFinished, this, &RKMDIWindow::clearStatusMessage);
status_message = message;
- // delay the actual show a bit. Often it's just a very brief "preview updating", that will just look like an annoying flicker
- status_message_timer.start(250);
+ if (message.isEmpty()) {
+ status_message_timer.stop();
+ showStatusMessageNow();
+ } else {
+ // delay the actual show a bit. Often it's just a very brief "preview updating", that will just look like an annoying flicker
+ status_message_timer.start(500);
+ }
}
void RKMDIWindow::clearStatusMessage () {
More information about the rkward-tracker
mailing list