From 41ecf8e5357ea9ab6a498327753277dfccb42f1b Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 30 Mar 2025 01:56:58 +0100 Subject: [PATCH] main: Add missing ifdef --- src/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 326750de6..dc632b762 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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);