ov-components: apply background from storage based on background effects button status

master
Carlos Santos 2025-06-10 17:17:39 +02:00
parent fe606cbf15
commit b7d9f822de
1 changed files with 4 additions and 2 deletions

View File

@ -181,8 +181,10 @@ export class SessionComponent implements OnInit, OnDestroy {
set layoutContainer(container: ElementRef) {
setTimeout(async () => {
if (container) {
// Apply background from storage when layout container is in DOM
await this.backgroundService.applyBackgroundFromStorage();
if (this.libService.showBackgroundEffectsButton()) {
// Apply background from storage when layout container is in DOM only when background effects button is enabled
await this.backgroundService.applyBackgroundFromStorage();
}
}
}, 0);
}