mirror of
https://github.com/fishyboteso/fishyboteso.git
synced 2024-08-30 18:32:13 +00:00
Merge pull request #178 from fishyboteso/wip/beep_bug
beep sound when sound notification abled and no beep sound when disabled
This commit is contained in:
commit
c67a40a7d6
@ -7,6 +7,7 @@ from typing import Dict, Optional, Callable
|
||||
from playsound import playsound
|
||||
|
||||
from fishy import helper
|
||||
from fishy.helper.config import config
|
||||
from fishy.helper.hotkey import process
|
||||
from fishy.helper.hotkey.process import Key
|
||||
|
||||
@ -63,7 +64,9 @@ class HotKey:
|
||||
if key in Key:
|
||||
callback = self._hotkeys[key]
|
||||
if callback:
|
||||
playsound(helper.manifest_file("beep.wav"), False)
|
||||
if config.get("sound_notification", False):
|
||||
playsound(helper.manifest_file("beep.wav"), False)
|
||||
|
||||
callback()
|
||||
|
||||
time.sleep(0.1)
|
||||
|
Loading…
Reference in New Issue
Block a user