mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-02-03 17:17:25 +00:00
fix - Hide/show tray icon makes duplicates in the tray menu
(cherry picked from commit 93e3a125be3602f2fd95d02fb0e11f11b1f059be)
This commit is contained in:
@@ -393,6 +393,7 @@ void Controller::openLauncherWindow()
|
||||
void Controller::enableTrayIcon()
|
||||
{
|
||||
if (m_trayIcon) {
|
||||
m_trayIcon->show();
|
||||
return;
|
||||
}
|
||||
if (nullptr == m_trayIconMenu) {
|
||||
@@ -519,7 +520,7 @@ void Controller::disableTrayIcon()
|
||||
{
|
||||
#if defined(Q_OS_LINUX) || defined(Q_OS_UNIX)
|
||||
if (m_trayIcon) {
|
||||
m_trayIcon->deleteLater();
|
||||
m_trayIcon->hide();
|
||||
}
|
||||
ConfigHandler().setDisabledTrayIcon(true);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user