From 2060d09f136f9f30e7dd0023423ef4e4b8b15afb Mon Sep 17 00:00:00 2001 From: Brskt Date: Wed, 4 Feb 2026 20:07:30 +0100 Subject: [PATCH 1/2] Fix hideTopBar not applying on startup Use observePromise to wait for the top bar element to exist before hiding it --- plugins/NativeFullscreen/src/index.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/NativeFullscreen/src/index.ts b/plugins/NativeFullscreen/src/index.ts index 4f00a852..a08090d0 100644 --- a/plugins/NativeFullscreen/src/index.ts +++ b/plugins/NativeFullscreen/src/index.ts @@ -1,5 +1,5 @@ import type { LunaUnload } from "@luna/core"; -import { redux } from "@luna/lib"; +import { observePromise, redux } from "@luna/lib"; import { storage } from "./Settings"; export { Settings } from "./Settings"; @@ -16,7 +16,12 @@ export const setTopBarVisibility = (visible: boolean) => { const bar = document.querySelector("div[class^='_bar']"); if (bar) bar.style.display = visible ? "" : "none"; }; -if (storage.hideTopBar) setTopBarVisibility(false); +// Apply hideTopBar setting on load +if (storage.hideTopBar) { + observePromise(unloads, "div[class^='_bar']").then((bar) => { + if (bar) setTopBarVisibility(false); + }); +} const onKeyDown = (event: KeyboardEvent) => { if (event.key === "F11") { From 82f0e05150abf6f80feae49cd3d5e24b141f0fff Mon Sep 17 00:00:00 2001 From: Brskt Date: Wed, 4 Feb 2026 20:07:42 +0100 Subject: [PATCH 2/2] Fix exitFullscreen error in Tidal windowed mode Only call exitFullscreen when in native fullscreen mode --- plugins/NativeFullscreen/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/NativeFullscreen/src/index.ts b/plugins/NativeFullscreen/src/index.ts index a08090d0..6d8c5070 100644 --- a/plugins/NativeFullscreen/src/index.ts +++ b/plugins/NativeFullscreen/src/index.ts @@ -32,7 +32,7 @@ const onKeyDown = (event: KeyboardEvent) => { if (document.fullscreenElement || wimp?.classList.contains("is-fullscreen")) { // Exiting fullscreen - document.exitFullscreen(); + if (document.fullscreenElement) document.exitFullscreen(); if (wimp) wimp.classList.remove("is-fullscreen"); if (!storage.hideTopBar) setTopBarVisibility(true); if (contentContainer) contentContainer.style.maxHeight = "";