Skip to content

Commit

Permalink
Discord Presence will now get cleared if Kaikki cannot get focused pr…
Browse files Browse the repository at this point in the history
…ocess
  • Loading branch information
Plextora committed Dec 29, 2022
1 parent cb90b49 commit 5e23c2a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions DiscordPresence.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ public static string RunDiscordRpc(string procName)
return "User is focused on the Kaikki window. Clearing presence...";
}

if (procName == "Unknown")
{
Client.ClearPresence();
return "Cannot get the process name of focused window. Clearing presence...";
}

SetPresence("kaikki_logo", procName, "Kaikki logo");
return "Unsupported process";
}
Expand Down

0 comments on commit 5e23c2a

Please sign in to comment.