@@ -705,7 +705,7 @@ def on_duplicate_clicked(self, widget):
705
705
new_title = duplicate_dialog .entry_title .get_text ()
706
706
707
707
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." )
709
709
else :
710
710
title_formatted_old = re .sub (r'[^a-zA-Z0-9\s]' , '' , title )
711
711
title_formatted_old = title_formatted_old .replace (' ' , '-' )
@@ -3357,7 +3357,6 @@ def __init__(self, parent, title):
3357
3357
super ().__init__ (title = f"Duplicate { title } " , transient_for = parent , modal = True )
3358
3358
self .set_resizable (False )
3359
3359
self .set_icon_from_file (faugus_png )
3360
- subprocess .Popen (["canberra-gtk-play" , "-i" , "dialog-warning" ])
3361
3360
if faugus_session :
3362
3361
self .fullscreen ()
3363
3362
@@ -3407,6 +3406,7 @@ def show_warning_dialog(self, parent, title):
3407
3406
dialog = Gtk .Dialog (title = "Faugus Launcher" , transient_for = parent , modal = True )
3408
3407
dialog .set_resizable (False )
3409
3408
dialog .set_icon_from_file (faugus_png )
3409
+ subprocess .Popen (["canberra-gtk-play" , "-i" , "dialog-error" ])
3410
3410
if faugus_session :
3411
3411
dialog .fullscreen ()
3412
3412
0 commit comments