diff --git a/0001-applets-devicenotifier-Don-t-open-popup-for-already-.patch b/0001-applets-devicenotifier-Don-t-open-popup-for-already-.patch new file mode 100644 index 0000000..62bfac3 --- /dev/null +++ b/0001-applets-devicenotifier-Don-t-open-popup-for-already-.patch @@ -0,0 +1,46 @@ +From 8b89b8d6d4525f313e7fd31a347381dc27dd7710 Mon Sep 17 00:00:00 2001 +From: Nate Graham +Date: Fri, 2 Oct 2020 15:37:59 -0600 +Subject: [PATCH] [applets/devicenotifier] Don't open popup for + already-connected devices + +The old applet only opened the popup when a new device was attached +after the applet was loaded, not if there was already a device attached +when the applet was loaded. This commit brings back the old behavior by +re-using the approach taken in the old applet. + +BUG: 426990 +FIXED-IN: 5.20 +--- + .../devicenotifier/package/contents/ui/devicenotifier.qml | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/applets/devicenotifier/package/contents/ui/devicenotifier.qml b/applets/devicenotifier/package/contents/ui/devicenotifier.qml +index d720dfe21..cc531c949 100644 +--- a/applets/devicenotifier/package/contents/ui/devicenotifier.qml ++++ b/applets/devicenotifier/package/contents/ui/devicenotifier.qml +@@ -122,9 +122,6 @@ Item { + if (data[source].Removable) { + devicenotifier.connectedRemovables.push(source); + devicenotifier.connectedRemovables = devicenotifier.connectedRemovables; +- devicenotifier.popupIcon = "preferences-desktop-notification"; +- expandTimer.restart(); +- popupIconTimer.restart() + } + } + +@@ -171,7 +168,10 @@ Item { + + function processLastDevice(expand) { + if (last) { +- if (isViableDevice(last)) { ++ if (isViableDevice(last) && hpSource.data[last].added) { ++ devicenotifier.popupIcon = "preferences-desktop-notification"; ++ expandTimer.restart(); ++ popupIconTimer.restart() + last = ""; + } + } +-- +2.25.1 + diff --git a/plasma5-workspace.changes b/plasma5-workspace.changes index 70cc091..8ef14a7 100644 --- a/plasma5-workspace.changes +++ b/plasma5-workspace.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Oct 3 10:21:26 UTC 2020 - Fabian Vogt + +- Add patch to avoid popup on login (kde#426990): + * 0001-applets-devicenotifier-Don-t-open-popup-for-already-.patch + ------------------------------------------------------------------- Mon Sep 28 15:08:20 UTC 2020 - Fabian Vogt diff --git a/plasma5-workspace.spec b/plasma5-workspace.spec index 46417a6..9f819c3 100644 --- a/plasma5-workspace.spec +++ b/plasma5-workspace.spec @@ -42,6 +42,7 @@ Source3: baselibs.conf Source4: plasmafullwayland.desktop # PATCH-FIX-UPSTREAM Patch1: 0001-Improve-handling-of-lifecycle-methods-in-retain-prio.patch +Patch2: 0001-applets-devicenotifier-Don-t-open-popup-for-already-.patch # PATCHES 501-??? are PATCH-FIX-OPENSUSE Patch501: 0001-Use-qdbus-qt5.patch Patch502: 0001-Ignore-default-sddm-face-icons.patch