Changed it

This commit is contained in:
Core 2022-04-14 15:00:51 +01:00
parent 9f4d689f2e
commit 87bb0c425d
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6
2 changed files with 4 additions and 4 deletions

View file

@ -158,8 +158,8 @@ export class Store {
}
}
private migrations: any = {
'1.4.3': (store: ElectronStore) => {
if (typeof(store.get('general.discord_rpc')) == 'number') {
'>=1.4.3': (store: ElectronStore) => {
if (typeof(store.get('general.discord_rpc')) == 'number' || typeof(store.get('general.discord_rpc')) == 'string') {
store.set('general.discord_rpc', this.defaults.general.discord_rpc)
}
},

View file

@ -221,8 +221,8 @@ export default class DiscordRPC {
// If the user wants to keep the activity when paused
if (!this._utils.getStoreValue("general.discord_rpc.clear_on_pause")) {
this._activity.smallImageKey = attributes.status ? 'pause' : 'play';
this._activity.smallImageText = attributes.status ? 'Paused' : 'Playing';
this._activity.smallImageKey = attributes.status ? 'play' : 'pause';
this._activity.smallImageText = attributes.status ? 'Playing' : 'Paused';
}
this.setActivity(this._activity)