Remove attempt to vary the save dialog labels

It's defeated by the fact that the dialog is cached the first time it is
created... whatever labels get used on the first construction get used
forever.
This commit is contained in:
Michael Catanzaro 2018-07-27 20:03:51 -05:00
parent e28ef95709
commit 4d5638dc46

View file

@ -1423,8 +1423,7 @@ Copyright © 20152016 Sahil Sareen""";
}
else if (result == Gtk.ResponseType.YES)
{
/* Your very last chance to save */
present_save_dialog (_("_Discard"), _("_Save"));
present_save_dialog ();
}
else
{
@ -2248,8 +2247,7 @@ Copyright © 20152016 Sahil Sareen""";
}
}
private void present_save_dialog (string cancel_button_label = N_("_Cancel"),
string save_button_label = N_("_Save"))
private void present_save_dialog ()
{
/* Show active dialog */
if (save_dialog == null)
@ -2257,8 +2255,8 @@ Copyright © 20152016 Sahil Sareen""";
save_dialog = new Gtk.FileChooserNative (/* Title of save game dialog */
_("Save Chess Game"),
window, Gtk.FileChooserAction.SAVE,
_(save_button_label),
_(cancel_button_label));
_("_Save"),
_("_Cancel"));
if (game_file != null && game_file.get_path () != autosave_filename)
save_dialog.set_filename (game_file.get_path ());