Fix: use hotkeys.setState
This commit is contained in:
parent
8caaab742c
commit
7f0945e002
|
@ -363,9 +363,9 @@ Object.assign(handleEvent, {
|
||||||
const {styleId, styleIsUsercss} = handleEvent.getClickedStyleElement(event);
|
const {styleId, styleIsUsercss} = handleEvent.getClickedStyleElement(event);
|
||||||
if (styleIsUsercss) {
|
if (styleIsUsercss) {
|
||||||
getStylesSafe({id: styleId}).then(([style]) => {
|
getStylesSafe({id: styleId}).then(([style]) => {
|
||||||
hotkeys.disable();
|
hotkeys.setState(false);
|
||||||
configDialog(style).then(() => {
|
configDialog(style).then(() => {
|
||||||
hotkeys.enable();
|
hotkeys.setState(true);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user