From 8e5a3a49faf4d2258336245a4b7911b834852423 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Fri, 14 Oct 2022 12:44:05 +0200 Subject: [PATCH] Update 0BDFDB.plugin.js --- Library/0BDFDB.plugin.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index c7c598ed97..60268e7ded 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -2,7 +2,7 @@ * @name BDFDB * @author DevilBro * @authorId 278543574059057154 - * @version 2.7.4 + * @version 2.7.5 * @description Required Library for DevilBro's Plugins * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -26,7 +26,7 @@ module.exports = (_ => { started: true, changeLog: { fixed: { - "Library fully funcational again": "I will slowly begin releasing updates for all my Plugins, you can find a list of which Plugins are fixed on my Support Server" + "Menu Slider": "Fixed Issue where Sliders in Context Menus would get stuck" } } }; @@ -873,7 +873,7 @@ module.exports = (_ => { name: BDFDB.LanguageUtils.LibraryStringsFormat("send", "Solana"), icon: "PHANTOM", onClick: _ => { - BDFDB.LibraryRequires.electron.clipboard.write({text: InternalData.mySolana}); + BDFDB.LibraryModules.WindowUtils.copy(InternalData.mySolana); BDFDB.NotificationUtils.toast(BDFDB.LanguageUtils.LibraryStringsFormat("clipboard_success", "Phantom Wallet Key"), { type: "success" }); @@ -882,7 +882,7 @@ module.exports = (_ => { name: BDFDB.LanguageUtils.LibraryStringsFormat("send", "Ethereum"), icon: "METAMASK", onClick: _ => { - BDFDB.LibraryRequires.electron.clipboard.write({text: InternalData.myEthereum}); + BDFDB.LibraryModules.WindowUtils.copy(InternalData.myEthereum); BDFDB.NotificationUtils.toast(BDFDB.LanguageUtils.LibraryStringsFormat("clipboard_success", "MetaMask Wallet Key"), { type: "success" }); @@ -8039,7 +8039,6 @@ module.exports = (_ => { ], after: [ "DiscordTag", - "Menu", "UseCopyIdItem", "UserPopoutAvatar", "UserThemedPopoutHeader" @@ -8248,9 +8247,6 @@ module.exports = (_ => { Internal.processMemberListItem = function (e) { Internal._processAvatarMount(e.instance.props.user, e.node.querySelector(BDFDB.dotCN.avatarwrapper), e.node); }; - Internal.processMenu = function (e) { - if (!e.instance.props.children || BDFDB.ArrayUtils.is(e.instance.props.children) && !e.instance.props.children.length) Internal.LibraryModules.ContextMenuUtils.closeContextMenu(); - }; Internal.processMessageHeader = function (e) { if (e.instance.props.message && e.instance.props.message.author) { if (e.instance.props.avatar && e.instance.props.avatar.props && typeof e.instance.props.avatar.props.children == "function") { @@ -8533,7 +8529,7 @@ module.exports = (_ => { BDFDB.NotificationUtils.toast("Translation copied to clipboard", { type: "success" }); - Internal.LibraryRequires.electron.clipboard.write({text: result}); + BDFDB.LibraryModules.WindowUtils.copy(result); } else { const callback = translation => {