effects/overview: only show "Delete desktop" button with >1 desktop

It doesn't make sense to let the user try to delete their only desktop.
This commit is contained in:
Nate Graham 2021-10-24 12:02:51 -06:00
parent ca58ee875f
commit 6d7d8ea699

View file

@ -147,7 +147,7 @@ Item {
Loader {
LayoutMirroring.enabled: Qt.application.layoutDirection == Qt.RightToLeft
active: hoverHandler.hovered
active: hoverHandler.hovered && desktopRepeater.count > 1
anchors.right: parent.right
anchors.top: parent.top
sourceComponent: PC3.Button {