diff options
author | Ken Moore <ken@ixsystems.com> | 2016-10-11 08:38:54 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2016-10-11 08:38:54 -0400 |
commit | 5516ffe1cc233d66a86c024130520e027b15ab6d (patch) | |
tree | 9eca9063f5c243adda87f74872880accbf282e70 /src-qt5/desktop-utils/lumina-screenshot/main.cpp | |
parent | Fix a bug in LFileInfo, and update lumina-fileinfo to show the size of the im... (diff) | |
download | lumina-5516ffe1cc233d66a86c024130520e027b15ab6d.tar.gz lumina-5516ffe1cc233d66a86c024130520e027b15ab6d.tar.bz2 lumina-5516ffe1cc233d66a86c024130520e027b15ab6d.zip |
Make lumina-screenshot single-instanced, and adjust the .desktop entry to *always* open a new window.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-screenshot/main.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-screenshot/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src-qt5/desktop-utils/lumina-screenshot/main.cpp b/src-qt5/desktop-utils/lumina-screenshot/main.cpp index aee374b0..27e1f2ff 100644 --- a/src-qt5/desktop-utils/lumina-screenshot/main.cpp +++ b/src-qt5/desktop-utils/lumina-screenshot/main.cpp @@ -7,14 +7,15 @@ #include <LuminaOS.h> #include <LuminaThemes.h> #include <LuminaUtils.h> +#include <LuminaSingleApplication.h> int main(int argc, char ** argv) { LTHEME::LoadCustomEnvSettings(); - QApplication a(argc, argv); + LSingleApplication a(argc, argv, "l-screenshot"); LuminaThemeEngine theme(&a); a.setApplicationName("Take Screenshot"); - LUtils::LoadTranslation(&a, "l-screenshot"); + //LUtils::LoadTranslation(&a, "l-screenshot"); MainUI w; QObject::connect(&theme,SIGNAL(updateIcons()), &w, SLOT(setupIcons()) ); |