summaryrefslogtreecommitdiffstats
path: root/apps/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/misc.c')
-rw-r--r--apps/misc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 21a45037ad..a054cfa7b6 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -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