diff options
author | Ken Moore <ken@ixsystems.com> | 2016-11-21 10:04:28 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2016-11-21 10:04:28 -0500 |
commit | 3f885fb37548a8ba362ac2519717379f250895cb (patch) | |
tree | 49f8251f14f695d98fefed52ee125f56500565b3 /src-qt5/core-utils | |
parent | Get a bit more of the input device class working - using lumina-config for te... (diff) | |
download | lumina-3f885fb37548a8ba362ac2519717379f250895cb.tar.gz lumina-3f885fb37548a8ba362ac2519717379f250895cb.tar.bz2 lumina-3f885fb37548a8ba362ac2519717379f250895cb.zip |
Add a new menu plugin: "lockdesktop".
This just adds a shortcut to the context menu for locking the desktop session.
Diffstat (limited to 'src-qt5/core-utils')
-rw-r--r-- | src-qt5/core-utils/lumina-config/LPlugins.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src-qt5/core-utils/lumina-config/LPlugins.cpp b/src-qt5/core-utils/lumina-config/LPlugins.cpp index dfd490e6..aa691df4 100644 --- a/src-qt5/core-utils/lumina-config/LPlugins.cpp +++ b/src-qt5/core-utils/lumina-config/LPlugins.cpp @@ -307,6 +307,13 @@ void LPlugins::LoadMenuPlugins(){ info.ID = "jsonmenu"; info.icon = "text-x-script"; MENU.insert(info.ID, info); + //Lock Screen item + info = LPI(); //clear it + info.name = QObject::tr("Lock Session"); + info.description = QObject::tr("Lock the current desktop session"); + info.ID = "lockdesktop"; + info.icon = "system-lock-screen"; + MENU.insert(info.ID, info); } void LPlugins::LoadColorItems(){ |