forked from len0rd/rockbox
Warn before overwriting another playlist on disk
When saving a playlist to an existing file on disk, warn user, unless the playlist's file name remains unchanged. Change-Id: I10d82667de5fadb5323be4f981bea9263849f07a
This commit is contained in:
parent
2747e920ba
commit
422ea20cef
6 changed files with 55 additions and 27 deletions
|
@ -1227,6 +1227,13 @@ int confirm_delete_yesno(const char *name)
|
|||
return gui_syncyesno_run(&message, &yes_message, NULL);
|
||||
}
|
||||
|
||||
int confirm_overwrite_yesno(void)
|
||||
{
|
||||
static const char *lines[] = { ID2P(LANG_REALLY_OVERWRITE) };
|
||||
static const struct text_message message = { lines, 1 };
|
||||
return gui_syncyesno_run(&message, NULL, NULL);
|
||||
}
|
||||
|
||||
/* time_split_units()
|
||||
split time values depending on base unit
|
||||
unit_idx: UNIT_HOUR, UNIT_MIN, UNIT_SEC, UNIT_MS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue