Skip to content

Commit d934bbe

Browse files
committed
Hide rich presence is it's not compiled in.
1 parent c3160f4 commit d934bbe

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

SerialPrograms/Source/CommonFramework/GlobalSettingsPanel.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ GlobalSettings::GlobalSettings()
158158
) + ")</font>"
159159
)
160160
, RICH_PRESENCE(
161-
"<b>Enable Rich Presence:</b><br>Will display program activity and status under your Discord user.",
161+
"<b>Enable Rich Presence:</b><br>"
162+
"Display program activity and status under your Discord user.<br>"
163+
"Restart the program for the change to take effect.",
162164
LockMode::UNLOCK_WHILE_RUNNING,
163165
true
164166
)
@@ -228,7 +230,9 @@ GlobalSettings::GlobalSettings()
228230
#endif
229231

230232
PA_ADD_STATIC(m_discord_settings);
233+
#ifdef PA_SOCIAL_SDK
231234
PA_ADD_OPTION(RICH_PRESENCE);
235+
#endif
232236
PA_ADD_OPTION(ALL_STATS);
233237
PA_ADD_OPTION(DISCORD);
234238

SerialPrograms/Source/CommonFramework/Main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ int main(int argc, char *argv[]){
116116
discord_settings.on_config_value_changed(nullptr);
117117
}
118118

119-
if (GlobalSettings::instance().RICH_PRESENCE){
120119
#ifdef PA_SOCIAL_SDK
120+
if (GlobalSettings::instance().RICH_PRESENCE){
121121
Integration::DiscordSocialSDK::DiscordSocial::instance().run();
122-
#endif
123122
}
123+
#endif
124124

125125
set_working_directory();
126126

0 commit comments

Comments
 (0)