Revamp system tray icon menu handling

Update system tray icon menu without re-create it.

PR #20597.
Closes #20516.
This commit is contained in:
Vladimir Golovnev
2024-03-26 15:24:43 +03:00
committed by GitHub
parent 489bacd766
commit 5e8b9df859
5 changed files with 14 additions and 82 deletions

View File

@@ -1,6 +1,6 @@
/*
* Bittorrent Client using Qt and libtorrent.
* Copyright (C) 2022 Vladimir Golovnev <glassez@yandex.ru>
* Copyright (C) 2022-2024 Vladimir Golovnev <glassez@yandex.ru>
* Copyright (C) 2006 Christophe Dumez <chris@qbittorrent.org>
*
* This program is free software; you can redistribute it and/or
@@ -186,7 +186,7 @@ private slots:
#endif
private:
QMenu *createDesktopIntegrationMenu();
void populateDesktopIntegrationMenu();
#ifdef Q_OS_WIN
void installPython();
#endif