From 6f460302cfc7a64001f58b29151a70977e1169c5 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sat, 31 Aug 2024 09:57:49 +0700 Subject: [PATCH] Fix Game Bar not showing sometimes --- src/modules/game-bar/game-bar.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/game-bar/game-bar.ts b/src/modules/game-bar/game-bar.ts index edf5187..fc1d7f4 100644 --- a/src/modules/game-bar/game-bar.ts +++ b/src/modules/game-bar/game-bar.ts @@ -12,7 +12,6 @@ import { getPref, StreamTouchController } from "@/utils/settings-storages/global export class GameBar { private static instance: GameBar; - public static getInstance(): GameBar { if (!GameBar.instance) { GameBar.instance = new GameBar(); @@ -125,7 +124,7 @@ export class GameBar { return; } - this.$container.classList.remove('bx-offscreen', 'bx-hide'); + this.$container.classList.remove('bx-offscreen', 'bx-hide' , 'bx-gone'); this.$container.classList.add('bx-show'); this.beginHideTimeout();