Fix applying background blur
This commit is contained in:
parent
2a3f0b1010
commit
9174307be0
@ -49,6 +49,7 @@ export default class AppBackgroundTab extends SliderSuperTab {
|
|||||||
theme.background = copy(defaultTheme.background);
|
theme.background = copy(defaultTheme.background);
|
||||||
appStateManager.pushToState('settings', rootScope.settings);
|
appStateManager.pushToState('settings', rootScope.settings);
|
||||||
appImManager.applyCurrentTheme(undefined, undefined, true);
|
appImManager.applyCurrentTheme(undefined, undefined, true);
|
||||||
|
blurCheckboxField.setValueSilently(theme.background.blur);
|
||||||
}
|
}
|
||||||
}, {listenerSetter: this.listenerSetter});
|
}, {listenerSetter: this.listenerSetter});
|
||||||
|
|
||||||
@ -61,12 +62,12 @@ export default class AppBackgroundTab extends SliderSuperTab {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.listenerSetter.add(blurCheckboxField.input, 'change', () => {
|
this.listenerSetter.add(blurCheckboxField.input, 'change', () => {
|
||||||
const active = grid.querySelector('.active') as HTMLElement;
|
|
||||||
if(!active) return;
|
|
||||||
|
|
||||||
theme.background.blur = blurCheckboxField.input.checked;
|
theme.background.blur = blurCheckboxField.input.checked;
|
||||||
appStateManager.pushToState('settings', rootScope.settings);
|
appStateManager.pushToState('settings', rootScope.settings);
|
||||||
|
|
||||||
|
const active = grid.querySelector('.active') as HTMLElement;
|
||||||
|
if(!active) return;
|
||||||
|
|
||||||
// * wait for animation end
|
// * wait for animation end
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
setBackgroundDocument(active.dataset.slug, appDocsManager.getDoc(active.dataset.docId));
|
setBackgroundDocument(active.dataset.slug, appDocsManager.getDoc(active.dataset.docId));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user