Skip to content

Commit 8454387

Browse files
authored
Fixed sound bug when duplicating a game
1 parent ceddd83 commit 8454387

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

faugus-launcher.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ def on_duplicate_clicked(self, widget):
705705
new_title = duplicate_dialog.entry_title.get_text()
706706

707707
if any(new_title == game.title for game in self.games):
708-
self.show_warning_dialog(duplicate_dialog, f"{title} already exists.")
708+
duplicate_dialog.show_warning_dialog(duplicate_dialog, f"{title} already exists.")
709709
else:
710710
title_formatted_old = re.sub(r'[^a-zA-Z0-9\s]', '', title)
711711
title_formatted_old = title_formatted_old.replace(' ', '-')
@@ -3357,7 +3357,6 @@ def __init__(self, parent, title):
33573357
super().__init__(title=f"Duplicate {title}", transient_for=parent, modal=True)
33583358
self.set_resizable(False)
33593359
self.set_icon_from_file(faugus_png)
3360-
subprocess.Popen(["canberra-gtk-play", "-i", "dialog-warning"])
33613360
if faugus_session:
33623361
self.fullscreen()
33633362

@@ -3407,6 +3406,7 @@ def show_warning_dialog(self, parent, title):
34073406
dialog = Gtk.Dialog(title="Faugus Launcher", transient_for=parent, modal=True)
34083407
dialog.set_resizable(False)
34093408
dialog.set_icon_from_file(faugus_png)
3409+
subprocess.Popen(["canberra-gtk-play", "-i", "dialog-error"])
34103410
if faugus_session:
34113411
dialog.fullscreen()
34123412

0 commit comments

Comments
 (0)