Fix quitting without tray icon

Setting KSNI status to Passive doesn't *disable* the tray icon, it just
moves it to the overflow menu. This causes the application to not quit
when closing the app even when disabling the tray icon
This commit is contained in:
Tobias Fella
2022-02-25 16:41:21 +01:00
parent faeb1964bd
commit 47a0d30e57
2 changed files with 12 additions and 8 deletions

View File

@@ -19,6 +19,7 @@ class QKeySequences;
class NeoChatRoom;
class NeoChatUser;
class TrayIcon;
class QQuickWindow;
namespace QKeychain
@@ -100,6 +101,7 @@ private:
QPointer<Connection> m_connection;
bool m_busy = false;
TrayIcon *m_trayIcon = nullptr;
static QByteArray loadAccessTokenFromFile(const AccountSettings &account);
QKeychain::ReadPasswordJob *loadAccessTokenFromKeyChain(const AccountSettings &account);