main: Add missing ifdef

This commit is contained in:
Jonas Kvinge
2025-03-30 01:56:58 +01:00
parent 70c96ded28
commit 41ecf8e535

View File

@@ -323,7 +323,13 @@ int main(int argc, char *argv[]) {
#endif
// Window
MainWindow w(&app, tray_icon, &osd, &discord_rich_presence, options);
MainWindow w(&app,
tray_icon,
&osd,
#ifdef HAVE_DISCORD_RPC
&discord_rich_presence,
#endif
options);
#ifdef Q_OS_MACOS
mac::EnableFullScreen(w);