- Add patch to avoid popup on login (kde#426990):
* 0001-applets-devicenotifier-Don-t-open-popup-for-already-.patch OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/plasma5-workspace?expand=0&rev=540
This commit is contained in:
parent
d8e1f8c168
commit
97373a52bc
@ -0,0 +1,46 @@
|
|||||||
|
From 8b89b8d6d4525f313e7fd31a347381dc27dd7710 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Nate Graham <nate@kde.org>
|
||||||
|
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
|
||||||
|
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Oct 3 10:21:26 UTC 2020 - Fabian Vogt <fabian@ritter-vogt.de>
|
||||||
|
|
||||||
|
- 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 <fabian@ritter-vogt.de>
|
Mon Sep 28 15:08:20 UTC 2020 - Fabian Vogt <fabian@ritter-vogt.de>
|
||||||
|
|
||||||
|
@ -42,6 +42,7 @@ Source3: baselibs.conf
|
|||||||
Source4: plasmafullwayland.desktop
|
Source4: plasmafullwayland.desktop
|
||||||
# PATCH-FIX-UPSTREAM
|
# PATCH-FIX-UPSTREAM
|
||||||
Patch1: 0001-Improve-handling-of-lifecycle-methods-in-retain-prio.patch
|
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
|
# PATCHES 501-??? are PATCH-FIX-OPENSUSE
|
||||||
Patch501: 0001-Use-qdbus-qt5.patch
|
Patch501: 0001-Use-qdbus-qt5.patch
|
||||||
Patch502: 0001-Ignore-default-sddm-face-icons.patch
|
Patch502: 0001-Ignore-default-sddm-face-icons.patch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user