From 81faa022735b155ac0773e1cc849474a0719c523 Mon Sep 17 00:00:00 2001 From: Keshav Date: Tue, 10 May 2022 10:09:53 +0530 Subject: 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 --- src/WhatsApp.pro | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/WhatsApp.pro') 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 \ -- cgit v1.2.3