mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-02-04 01:28:07 +00:00
Fix recursive static init (#2196)
* Removed default config for abstract logger that sends a system notification, also cleaned up a useless ifdef * Send notifications from event loop on Win and Mac (#2197) Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com> Co-authored-by: Haris Gušić <harisgusic.dev@gmail.com>
This commit is contained in:
@@ -519,12 +519,10 @@ void Controller::enableTrayIcon()
|
||||
|
||||
void Controller::disableTrayIcon()
|
||||
{
|
||||
#if defined(Q_OS_LINUX) || defined(Q_OS_UNIX) || defined(Q_OS_MACOS)
|
||||
if (m_trayIcon) {
|
||||
m_trayIcon->hide();
|
||||
}
|
||||
ConfigHandler().setDisabledTrayIcon(true);
|
||||
#endif
|
||||
}
|
||||
|
||||
void Controller::sendTrayNotification(const QString& text,
|
||||
|
||||
Reference in New Issue
Block a user