File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
SerialPrograms/Source/CommonFramework Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments