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/mainwindow.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mainwindow.h') diff --git a/src/mainwindow.h b/src/mainwindow.h index c3c82a2..8573226 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -50,6 +50,7 @@ public slots: void handleDownloadRequested(QWebEngineDownloadItem *download); void loadAppWithArgument(const QString &arg); void runMinimized(); + void alreadyRunning(); protected slots: void closeEvent(QCloseEvent *event) override; void resizeEvent(QResizeEvent *event) override; @@ -125,6 +126,7 @@ private slots: bool isLoggedIn(); void initAutoLock(); void appAutoLockChanged(); + void injectNewChatJavaScript(); }; #endif // MAINWINDOW_H -- cgit v1.2.3