Commit 7f729fa1 authored by Nicolas Fella's avatar Nicolas Fella

[Pager] Don't show a window list on hover if there is only one window

Summary: If there is only one visible window on the virtual desktop show the title directly instead of "1 Window" + one-entry list.

Test Plan:
Before:
{F6069186}

After:
{F6069189}

Reviewers: hein, broulik, ngraham

Reviewed By: hein, ngraham

Subscribers: mart, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D14026
parent 1f87cec5
......@@ -337,7 +337,9 @@ MouseArea {
}
}
if (visibleWindows.length) {
if (visibleWindows.length === 1) {
text += visibleWindows[0]
} else if (visibleWindows.length > 1) {
text += i18np("%1 Window:", "%1 Windows:", visibleWindows.length)
+ generateWindowList(visibleWindows)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment