replace trayicon activation with menu actions (#4632)

This commit is contained in:
ebbit1q 2023-08-06 23:55:02 +02:00 committed by GitHub
parent 176c52daf2
commit 244cb847fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 19 deletions

View file

@ -84,7 +84,7 @@ private slots:
void forgotPasswordSuccess();
void forgotPasswordError();
void promptForgotPasswordReset();
void iconActivated(QSystemTrayIcon::ActivationReason reason);
void actShow();
void promptForgotPasswordChallenge();
void showWindowIfHidden();
@ -114,7 +114,6 @@ private:
void createMenus();
void createTrayIcon();
void createTrayActions();
int getNextCustomSetPrefix(QDir dataDir);
inline QString getCardUpdaterBinaryName()
{
@ -125,8 +124,8 @@ private:
QList<QMenu *> tabMenus;
QMenu *cockatriceMenu, *dbMenu, *helpMenu, *trayIconMenu;
QAction *aConnect, *aDisconnect, *aSinglePlayer, *aWatchReplay, *aDeckEditor, *aFullScreen, *aSettings, *aExit,
*aAbout, *aTips, *aCheckCardUpdates, *aRegister, *aForgotPassword, *aUpdate, *aViewLog, *closeAction;
QAction *aManageSets, *aEditTokens, *aOpenCustomFolder, *aOpenCustomsetsFolder, *aAddCustomSet;
*aAbout, *aTips, *aCheckCardUpdates, *aRegister, *aForgotPassword, *aUpdate, *aViewLog, *aManageSets,
*aEditTokens, *aOpenCustomFolder, *aOpenCustomsetsFolder, *aAddCustomSet, *aShow;
TabSupervisor *tabSupervisor;
WndSets *wndSets;
RemoteClient *client;