[education/rkward] rkward: Fix removal of R engine unavailable message
Thomas Friedrichsmeier
null at kde.org
Wed Jul 31 13:22:03 BST 2024
Git commit 1e1227726ca1e7c8c70114155ed4adb40143de5a by Thomas Friedrichsmeier.
Committed on 31/07/2024 at 12:21.
Pushed by tfry into branch 'master'.
Fix removal of R engine unavailable message
M +4 -4 rkward/rkward.cpp
https://invent.kde.org/education/rkward/-/commit/1e1227726ca1e7c8c70114155ed4adb40143de5a
diff --git a/rkward/rkward.cpp b/rkward/rkward.cpp
index de116d2ca..baeb4b766 100644
--- a/rkward/rkward.cpp
+++ b/rkward/rkward.cpp
@@ -960,14 +960,14 @@ void RKWardMainWindow::setRStatus (int status) {
setIndictatorColor(statusbar_r_status, KColorScheme::PositiveText, KColorScheme::PositiveBackground);
statusbar_r_status->setToolTip(i18n("The <b>R</b> engine is idle."));
interrupt_all_commands->setEnabled(false);
- } else if (status == RInterface::Starting) {
- if (rstatus_message) rstatus_message->hide();
- setIndictatorColor(statusbar_r_status, KColorScheme::NeutralText, KColorScheme::NeutralBackground);
- statusbar_r_status->setToolTip(i18n("The <b>R</b> engine is being initialized."));
if (rstatus_message) {
delete rstatus_message;
rstatus_message = nullptr;
}
+ } else if (status == RInterface::Starting) {
+ if (rstatus_message) rstatus_message->hide();
+ setIndictatorColor(statusbar_r_status, KColorScheme::NeutralText, KColorScheme::NeutralBackground);
+ statusbar_r_status->setToolTip(i18n("The <b>R</b> engine is being initialized."));
} else {
setIndictatorColor(statusbar_r_status, KColorScheme::NegativeText, KColorScheme::NegativeBackground);
statusbar_r_status->setToolTip(i18n("The <b>R</b> engine is unavailable."));
More information about the rkward-tracker
mailing list