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:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user