diff options
author | 2022-05-10 10:09:53 +0530 | |
---|---|---|
committer | 2022-05-10 10:17:26 +0530 | |
commit | 81faa022735b155ac0773e1cc849474a0719c523 (patch) | |
tree | 81dd2ce375ab7696511b44555861fae8392bab60 /src/WhatsApp.pro | |
parent | 8c0df6d34bba406e4d8e2711e4f5134a24107b2e (diff) | |
download | whatsie-81faa022735b155ac0773e1cc849474a0719c523.tar.gz whatsie-81faa022735b155ac0773e1cc849474a0719c523.zip |
feat: implement IPC & other improvements
- lets run only one instance of application
- lets pass arguments from secondary instances to main instance
- open new chat without reloading page
- restore application with commandline argument to secondary instance:
example: whatsie whatsapp://whatsie
will restore the primary instance of whatsie process
Diffstat (limited to 'src/WhatsApp.pro')
-rw-r--r-- | src/WhatsApp.pro | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/WhatsApp.pro b/src/WhatsApp.pro index a6aca88..2fce6ea 100644 --- a/src/WhatsApp.pro +++ b/src/WhatsApp.pro @@ -26,6 +26,9 @@ win32{ LIBS += User32.Lib } +include(singleapplication/singleapplication.pri) +DEFINES += QAPPLICATION_CLASS=QApplication + # The following define makes your compiler emit warnings if you use # any Qt feature that has been marked deprecated (the exact warnings # depend on your compiler). Refer to the documentation for the @@ -63,7 +66,6 @@ SOURCES += \ mainwindow.cpp \ permissiondialog.cpp \ rateapp.cpp \ - rungaurd.cpp \ settingswidget.cpp \ utils.cpp \ webenginepage.cpp \ @@ -89,7 +91,6 @@ HEADERS += \ permissiondialog.h \ rateapp.h \ requestinterceptor.h \ - rungaurd.h \ settingswidget.h \ utils.h \ webenginepage.h \ |