We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5efbfa7 + 46d6cab commit ed26c4fCopy full SHA for ed26c4f
linux/main.cpp
@@ -339,7 +339,21 @@ public slots:
339
QStringList parts = status.split(", ");
340
int leftLevel = parts[0].split(": ")[1].replace("%", "").toInt();
341
int rightLevel = parts[1].split(": ")[1].replace("%", "").toInt();
342
- int minLevel = qMin(leftLevel, rightLevel);
+
343
+ int minLevel;
344
+ if (leftLevel == 0)
345
+ {
346
+ minLevel = rightLevel;
347
+ }
348
+ else if (rightLevel == 0)
349
350
+ minLevel = leftLevel;
351
352
+ else
353
354
+ minLevel = qMin(leftLevel, rightLevel);
355
356
357
358
QPixmap pixmap(32, 32);
359
pixmap.fill(Qt::transparent);
@@ -952,4 +966,4 @@ int main(int argc, char *argv[]) {
952
966
}
953
967
954
968
955
-#include "main.moc"
969
+#include "main.moc"
0 commit comments