Merge pull request 'disable osu integrated rpc when launcher has active rpc' (#1) from next into master
Reviewed-on: #1
This commit is contained in:
commit
0f5eab873f
|
@ -60,4 +60,5 @@ module.exports = {
|
|||
richPresence.setActivity(currentStatus);
|
||||
}
|
||||
},
|
||||
hasPresence: () => richPresence != undefined,
|
||||
};
|
||||
|
|
3
main.js
3
main.js
|
@ -486,6 +486,9 @@ function registerIPCPipes() {
|
|||
const userConfig = getUserConfig(osuPath);
|
||||
richPresence.updateVersion(await userConfig.get("LastVersion"));
|
||||
richPresence.update();
|
||||
if (richPresence.hasPresence) {
|
||||
await userConfig.set("DiscordRichPresence", "0");
|
||||
}
|
||||
await userConfig.set("ShowInterfaceDuringRelax", "1");
|
||||
if (currentUser) {
|
||||
await userConfig.set("CredentialEndpoint", "ez-pp.farm");
|
||||
|
|
Loading…
Reference in New Issue
Block a user