parent
242e3384b2
commit
522a2bdab3
|
@ -164,7 +164,7 @@ function configDialog(style) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
saving = true;
|
saving = true;
|
||||||
return BG.usercssHelper.save(style)
|
return BG.usercssHelper.save(BG.deepCopy(style))
|
||||||
.then(saved => {
|
.then(saved => {
|
||||||
varsInitial = getInitialValues(deepCopy(saved.usercssData.vars));
|
varsInitial = getInitialValues(deepCopy(saved.usercssData.vars));
|
||||||
vars.forEach(va => onchange({target: va.input, justSaved: true}));
|
vars.forEach(va => onchange({target: va.input, justSaved: true}));
|
||||||
|
|
|
@ -361,7 +361,7 @@ Object.assign(handleEvent, {
|
||||||
if (styleIsUsercss) {
|
if (styleIsUsercss) {
|
||||||
getStylesSafe({id: styleId}).then(([style]) => {
|
getStylesSafe({id: styleId}).then(([style]) => {
|
||||||
hotkeys.setState(false);
|
hotkeys.setState(false);
|
||||||
configDialog(style).then(() => {
|
configDialog(deepCopy(style)).then(() => {
|
||||||
hotkeys.setState(true);
|
hotkeys.setState(true);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user