Playback Notifications Now Configurable and available on all systems
DiscordRPC swapped to bool for clear activity Updated store file to bools and added playback notification Updated en_GB to fun language, as from what I've seen none of the US English words are different in GB English
This commit is contained in:
parent
3a9bce5f26
commit
499659469e
7 changed files with 625 additions and 579 deletions
|
@ -125,7 +125,7 @@ export default class DiscordRichPresence {
|
|||
|
||||
// Check if its pausing (false) or playing (true)
|
||||
if (!attributes.status) {
|
||||
if (DiscordRichPresence._store.general.discordClearActivityOnPause == 1) {
|
||||
if (DiscordRichPresence._store.general.discord_rpc_clear_on_pause) {
|
||||
this._client.clearActivity()
|
||||
.catch((e: any) => console.error(`[DiscordRichPresence][clearActivity] ${e}`));
|
||||
} else {
|
||||
|
@ -138,7 +138,7 @@ export default class DiscordRichPresence {
|
|||
}
|
||||
|
||||
} else if (this._activity && this._activityCache !== this._activity && this._activity.details) {
|
||||
if (DiscordRichPresence._store.general.discordClearActivityOnPause != 1) {
|
||||
if (!DiscordRichPresence._store.general.discord_rpc_clear_on_pause) {
|
||||
this._activity.smallImageKey = 'play';
|
||||
this._activity.smallImageText = 'Playing';
|
||||
}
|
||||
|
|
|
@ -123,10 +123,7 @@ export default class MinimizeToTray {
|
|||
// listen for close event
|
||||
this._win.hide();
|
||||
this.SetContextMenu(false);
|
||||
});
|
||||
electron.ipcMain.handle("update-store-mtt", (event, value) => {
|
||||
this._store.general["close_behavior"] = value;
|
||||
})
|
||||
});
|
||||
this._win.on("close", (e :any) => {
|
||||
if (this._forceQuit || this._store.general["close_behavior"] == '0' ) {
|
||||
this._app.quit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue