Skip to content

Commit

Permalink
Fixed sound bug when duplicating a game
Browse files Browse the repository at this point in the history
  • Loading branch information
Faugus authored Jan 12, 2025
1 parent ceddd83 commit 8454387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions faugus-launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ def on_duplicate_clicked(self, widget):
new_title = duplicate_dialog.entry_title.get_text()

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

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

Expand Down

0 comments on commit 8454387

Please sign in to comment.