From 97a3ce57f39514fafd67c9bfe732366c0ed08028 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Tue, 18 May 2021 18:13:18 +0200 Subject: [PATCH] stuff --- Library/_res/BDFDB.data.json | 1 + Plugins/GameActivityToggle/GameActivityToggle.plugin.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Library/_res/BDFDB.data.json b/Library/_res/BDFDB.data.json index 5384803ddb..8e2d8b8b7c 100644 --- a/Library/_res/BDFDB.data.json +++ b/Library/_res/BDFDB.data.json @@ -32,6 +32,7 @@ "ChannelUtils": {"props": ["selectChannel", "selectPrivateChannel"]}, "ChannelStore": {"props": ["getChannel", "getDMFromUserId"]}, "ColorUtils": {"props": ["hex2int", "hex2rgb"]}, + "ConnectionUtils": {"props": ["setShowActivity", "setVisibility"]}, "ContextMenuUtils": {"props": ["closeContextMenu", "openContextMenu"]}, "CopyLinkUtils": {"props": ["SUPPORTS_COPY", "copy"]}, "CurrentUserStore": {"props": ["getCurrentUser"]}, diff --git a/Plugins/GameActivityToggle/GameActivityToggle.plugin.js b/Plugins/GameActivityToggle/GameActivityToggle.plugin.js index 25c9450f73..5b06a992de 100644 --- a/Plugins/GameActivityToggle/GameActivityToggle.plugin.js +++ b/Plugins/GameActivityToggle/GameActivityToggle.plugin.js @@ -72,7 +72,10 @@ module.exports = (_ => { tooltipText: BDFDB.LibraryModules.SettingsStore.showCurrentGame ? _this.labels.disable_activity : _this.labels.enable_activity, icon: iconProps => BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, Object.assign({}, iconProps, { nativeClass: true, - iconSVG: BDFDB.LibraryModules.SettingsStore.showCurrentGame ? `` : `` + width: 20, + height: 20, + foreground: BDFDB.disCN.accountinfobuttonstrikethrough, + name: BDFDB.LibraryModules.SettingsStore.showCurrentGame ? BDFDB.LibraryComponents.SvgIcon.Names.GAMEPAD : BDFDB.LibraryComponents.SvgIcon.Names.GAMEPAD_DISABLED })), onClick: _ => { _this.settings.general[!BDFDB.LibraryModules.SettingsStore.showCurrentGame ? "playEnable" : "playDisable"] && BDFDB.LibraryModules.SoundUtils.playSound(_this.settings.selections[!BDFDB.LibraryModules.SettingsStore.showCurrentGame ? "enableSound" : "disableSound"]);