Changed it
This commit is contained in:
parent
9f4d689f2e
commit
87bb0c425d
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue