From 41a8fe4855672fedda0cc77d41186ae82aceb69b Mon Sep 17 00:00:00 2001 From: Rikko Date: Mon, 29 Aug 2022 18:59:16 +0530 Subject: [PATCH] Add sound on plugin enable --- plugin_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin_manager.py b/plugin_manager.py index 782db12..846d74b 100644 --- a/plugin_manager.py +++ b/plugin_manager.py @@ -865,6 +865,7 @@ class PluginWindow(popup.PopupWindow): @button async def enable(self) -> None: await self.local_plugin.enable() + ba.playsound(ba.getsound('gunCocking')) @button async def install(self): @@ -1764,7 +1765,7 @@ class PluginManagerSettingsWindow(popup.PopupWindow): ba.app.config["Community Plugin Manager"]["Settings"] = self.settings.copy() ba.app.config.commit() self._ok() - ba.playsound(ba.getsound('shieldUp')) + ba.playsound(ba.getsound('gunCocking')) async def update(self, to_version=None, commit_sha=None): try: