Reload system tray icon to replace menu

PR #18250.
Closes #18074.
This commit is contained in:
Vladimir Golovnev
2023-01-22 16:48:58 +03:00
committed by Vladimir Golovnev (glassez)
parent c3abe4c2a6
commit 904bcc14d5
4 changed files with 33 additions and 6 deletions

View File

@@ -463,7 +463,6 @@ MainWindow::MainWindow(IGUIApplication *app, const State initialState)
MainWindow::~MainWindow()
{
app()->desktopIntegration()->setMenu(nullptr);
delete m_ui;
}
@@ -1573,7 +1572,7 @@ void MainWindow::downloadFromURLList(const QStringList &urlList)
QMenu *MainWindow::createDesktopIntegrationMenu()
{
auto *menu = new QMenu(this);
auto *menu = new QMenu;
#ifndef Q_OS_MACOS
connect(menu, &QMenu::aboutToShow, this, [this]()