[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasma-desktop] applets/trash/package/contents/ui: set default action when trash applet activated
From:       Michail Vourlakos <null () kde ! org>
Date:       2017-12-03 22:30:41
Message-ID: E1eLcmX-0006Ah-09 () code ! kde ! org
[Download RAW message or body]

Git commit 2bd71b5ab232321998e44a9eb5b3a1c5816c7dcd by Michail Vourlakos.
Committed on 03/12/2017 at 22:30.
Pushed by mvourlakos into branch 'master'.

set default action when trash applet activated

Summary:
--provide a default action to be executed when
the trash applet is activated

Test Plan:
--trigger the activated signal for the applet and see
if the trash:/ folder opens
--check that all the rest behavior of the applet isnt
influenced

Reviewers: #plasma, broulik

Reviewed By: #plasma, broulik

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D9133

M  +1    -0    applets/trash/package/contents/ui/main.qml

https://commits.kde.org/plasma-desktop/2bd71b5ab232321998e44a9eb5b3a1c5816c7dcd

diff --git a/applets/trash/package/contents/ui/main.qml b/applets/trash/package/contents/ui/main.qml
index bdc9c535..1eaecc61 100644
--- a/applets/trash/package/contents/ui/main.qml
+++ b/applets/trash/package/contents/ui/main.qml
@@ -59,6 +59,7 @@ DragDrop.DropArea {
     Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation
     Plasmoid.backgroundHints: PlasmaCore.Types.NoBackground
     Plasmoid.icon: (dirModel.count > 0) ? "user-trash-full": "user-trash"
+    Plasmoid.onActivated: action_open()
 
     preventStealing: true
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic