diff --git a/src/plugins/gameActivityToggle/index.tsx b/src/plugins/gameActivityToggle/index.tsx
index 1617e9cf..6926505b 100644
--- a/src/plugins/gameActivityToggle/index.tsx
+++ b/src/plugins/gameActivityToggle/index.tsx
@@ -16,14 +16,15 @@
* along with this program. If not, see .
*/
-import "./style.css";
-
import { getSettingStoreLazy } from "@api/SettingsStore";
+import { disableStyle, enableStyle } from "@api/Styles";
import ErrorBoundary from "@components/ErrorBoundary";
import { Devs } from "@utils/constants";
import definePlugin from "@utils/types";
import { Tooltip } from "@webpack/common";
+import style from "./style.css?managed";
+
const ShowCurrentGame = getSettingStoreLazy("status", "showCurrentGame");
function GameActivityToggleButton() {
@@ -69,5 +70,13 @@ export default definePlugin({
}
],
- GameActivityToggleButton: ErrorBoundary.wrap(GameActivityToggleButton, { noop: true })
+ GameActivityToggleButton: ErrorBoundary.wrap(GameActivityToggleButton, { noop: true }),
+
+ start() {
+ enableStyle(style);
+ },
+
+ stop() {
+ disableStyle(style);
+ }
});