Fixed fullscreen button hiding itself on settings update

This commit is contained in:
koloml committed 2024-12-30 22:57:43 +04:00
1 parent 112d60ac78
commit 757526ab52
1 file changed
+1 -1
@@ -33,7 +33,7 @@ export class ImageShowFullscreenButton extends BaseComponent {
})
.then(() => {
ImageShowFullscreenButton.#miscSettings.subscribe(settings => {
this.#isFullscreenButtonEnabled = settings.fullscreenViewer;
this.#isFullscreenButtonEnabled = settings.fullscreenViewer ?? true;
this.#updateFullscreenButtonVisibility();
})
})