Skip to content

Commit e944bbd

Browse files
authored
0.6.2 fix
1 parent 92912f0 commit e944bbd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

panel.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,14 @@ void Panel::updateWorkspaces() {
429429
}
430430
}
431431
else {
432-
static_cast<QPushButton*>(mAppletWidgets["workspace"])->setText(QString::number(visibleDesktop));
432+
QString buttonText;
433+
if (!getConfigValue("showDesktopNames").toBool()) {
434+
buttonText = QString::number(visibleDesktop);
435+
}
436+
else {
437+
buttonText = KWindowSystem::desktopName(visibleDesktop);
438+
}
439+
static_cast<QPushButton*>(mAppletWidgets["workspace"])->setText(buttonText);
433440
}
434441
}
435442

0 commit comments

Comments
 (0)