Disable discord error popups
This commit is contained in:
parent
971cbdd141
commit
d96255610d
|
@ -23,9 +23,10 @@ static void discord_sdk_log_callback(UNUSED void* hook_data, enum EDiscordLogLev
|
||||||
}
|
}
|
||||||
|
|
||||||
void discord_fatal_message(int rc) { // Discord usually does this because of loss of connection to Discord
|
void discord_fatal_message(int rc) { // Discord usually does this because of loss of connection to Discord
|
||||||
char errorMessage[132] = { 0 };
|
LOG_ERROR("Discord fatal: %d", rc);
|
||||||
|
/*char errorMessage[132] = { 0 };
|
||||||
snprintf(errorMessage, 132, "%s\nRC: %d", DLANG(NOTIF, DISCORD_ERROR), rc);
|
snprintf(errorMessage, 132, "%s\nRC: %d", DLANG(NOTIF, DISCORD_ERROR), rc);
|
||||||
djui_popup_create(errorMessage, 6);
|
djui_popup_create(errorMessage, 6);*/
|
||||||
}
|
}
|
||||||
|
|
||||||
void discord_fatal(int rc) {
|
void discord_fatal(int rc) {
|
||||||
|
@ -127,7 +128,7 @@ static void discord_initialize(void) {
|
||||||
|
|
||||||
if (rc) {
|
if (rc) {
|
||||||
LOG_ERROR("DiscordCreate failed: %d", rc);
|
LOG_ERROR("DiscordCreate failed: %d", rc);
|
||||||
djui_popup_create(DLANG(NOTIF, DISCORD_DETECT), 3);
|
//djui_popup_create(DLANG(NOTIF, DISCORD_DETECT), 3);
|
||||||
sDiscordFailed = true;
|
sDiscordFailed = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue