This commit is contained in:
Sander Land committed 2020-08-17 17:51:35 +02:00
1 parent d522d176dd
commit fa7c5dac5f
1 file changed
+3 -1
+3 -1
View File
@@ -100,7 +100,9 @@ class BadukPanWidget(Widget):
def play_stone_sound(self, *_args):
if self.katrain.config("timer/sound"):
random.choice(self.stones_sounds).play()
sound = random.choice(self.stones_sounds)
if sound:
sound.play()
def on_touch_up(self, touch):
if ("button" in touch.profile and touch.button != "left") or not self.gridpos_x: