Add sound on plugin enable

This commit is contained in:
Rikko 2022-08-29 18:59:16 +05:30
parent fa363fb251
commit 41a8fe4855

View file

@ -865,6 +865,7 @@ class PluginWindow(popup.PopupWindow):
@button @button
async def enable(self) -> None: async def enable(self) -> None:
await self.local_plugin.enable() await self.local_plugin.enable()
ba.playsound(ba.getsound('gunCocking'))
@button @button
async def install(self): 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["Community Plugin Manager"]["Settings"] = self.settings.copy()
ba.app.config.commit() ba.app.config.commit()
self._ok() self._ok()
ba.playsound(ba.getsound('shieldUp')) ba.playsound(ba.getsound('gunCocking'))
async def update(self, to_version=None, commit_sha=None): async def update(self, to_version=None, commit_sha=None):
try: try: