From 6d7d8ea69926e62add0d5451417dcdf2fa4f707a Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Sun, 24 Oct 2021 12:02:51 -0600 Subject: [PATCH] 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. --- src/effects/overview/qml/DesktopBar.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/effects/overview/qml/DesktopBar.qml b/src/effects/overview/qml/DesktopBar.qml index e74b989a2b..ed30a3afd0 100644 --- a/src/effects/overview/qml/DesktopBar.qml +++ b/src/effects/overview/qml/DesktopBar.qml @@ -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 {