kopia lustrzana https://github.com/jamescoxon/dl-fldigi
Save modified Macros
Added test to save modified macros before opening a new filepull/2/head
rodzic
75b3a5afe4
commit
37022f7d34
|
@ -519,7 +519,19 @@ void startup_modem(modem *m)
|
||||||
}
|
}
|
||||||
|
|
||||||
void cb_mnuOpenMacro(Fl_Menu_*, void*) {
|
void cb_mnuOpenMacro(Fl_Menu_*, void*) {
|
||||||
|
if (macros.changed) {
|
||||||
|
switch (fl_choice(_("Save changed macros?"), _("Cancel"), _("Save"), _("Don't save"))) {
|
||||||
|
case 0:
|
||||||
|
return;
|
||||||
|
case 1:
|
||||||
|
macros.saveMacroFile();
|
||||||
|
// fall through
|
||||||
|
case 2:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
macros.openMacroFile();
|
macros.openMacroFile();
|
||||||
|
macros.changed = false;
|
||||||
restoreFocus();
|
restoreFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue