update indicator on loaded
This commit is contained in:
parent
1f51f3260d
commit
cf30ef0cd5
2 changed files with 3 additions and 1 deletions
|
@ -15,7 +15,7 @@ export default class Common {
|
|||
input.onKey(key => keymapper.key(key));
|
||||
|
||||
this.store = store;
|
||||
this.prevEnabled = this.store.getState().addon.enabled;
|
||||
this.prevEnabled = undefined;
|
||||
|
||||
this.reloadSettings();
|
||||
|
||||
|
|
|
@ -44,6 +44,8 @@ export default class TopContent {
|
|||
.some(regex => regex.test(partial));
|
||||
if (matched) {
|
||||
this.store.dispatch(addonActions.disable());
|
||||
} else {
|
||||
this.store.dispatch(addonActions.enable());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue