Fix trayIconActivated MOC mismatch on macOS

Remove Q_OS_MAC guards around trayIconActivated slot declaration
and implementation. MOC generates code referencing the slot
unconditionally, causing a build error on macOS. The slot is
harmless when present - on macOS the tray icon isn't created
so it simply never gets called.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-15 03:11:51 -07:00
parent c5588b26f1
commit 9a5c9bd14b
2 changed files with 0 additions and 4 deletions
-2
View File
@@ -675,7 +675,6 @@ void TrianglesGUI::createTrayIconMenu()
#endif
}
#ifndef Q_OS_MAC
void TrianglesGUI::trayIconActivated(QSystemTrayIcon::ActivationReason reason)
{
if(reason == QSystemTrayIcon::Trigger)
@@ -684,7 +683,6 @@ void TrianglesGUI::trayIconActivated(QSystemTrayIcon::ActivationReason reason)
toggleHideAction->trigger();
}
}
#endif
void TrianglesGUI::saveWindowGeometry()
{
-2
View File
@@ -208,10 +208,8 @@ private slots:
void optionsClicked();
/** Show about dialog */
void aboutClicked();
#ifndef Q_OS_MAC
/** Handle tray icon clicked */
void trayIconActivated(QSystemTrayIcon::ActivationReason reason);
#endif
/** Show incoming transaction notification for new transactions.
The new items are those between start and end inclusive, under the given parent item.