[discord-rpc] fix status not being updated while indoors (#1421)

fix time of day display not being updated if indoors
This commit is contained in:
Hat Kid
2022-06-06 00:40:31 +02:00
committed by GitHub
parent bf2f785b2a
commit 4a298fbe7b
+3
View File
@@ -906,6 +906,9 @@ void update_discord_rpc(u32 discord_info) {
strcpy(small_image_key, time_of_day_str(time));
strcpy(small_image_text, "Time of day: ");
strcat(small_image_text, get_time_of_day(time).c_str());
} else {
strcpy(small_image_key, "");
strcpy(small_image_text, "");
}
}
rpc.smallImageKey = small_image_key;