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()
{