diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-11-24 23:09:26 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-11-24 23:09:26 -0500 |
commit | 71934d4c16fa1925833ef6e65ccb33b358398bd0 (patch) | |
tree | d8d6db20acaf15473b7aa2607a46e56fb07d4085 /apps/bookmark.c | |
parent | 3a22322ab77d38af3bea611f9dbb8f65b309d547 (diff) | |
download | rockbox-71934d4c16fa1925833ef6e65ccb33b358398bd0.tar.gz rockbox-71934d4c16fa1925833ef6e65ccb33b358398bd0.zip |
move confirm delete prompt to misc.c
Change-Id: Iadb1c7199caa5070f555eb4d329efb02e3193289
Diffstat (limited to 'apps/bookmark.c')
-rw-r--r-- | apps/bookmark.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/apps/bookmark.c b/apps/bookmark.c index 30b8d0338d..16bfe1cd2b 100644 --- a/apps/bookmark.c +++ b/apps/bookmark.c @@ -831,17 +831,7 @@ static int select_bookmark(const char* bookmark_file_name, case ACTION_BMS_DELETE: if (item >= 0) { - const char *lines[]={ - ID2P(LANG_REALLY_DELETE) - }; - const char *yes_lines[]={ - ID2P(LANG_DELETING) - }; - - const struct text_message message={lines, 1}; - const struct text_message yes_message={yes_lines, 1}; - - if(gui_syncyesno_run(&message, &yes_message, NULL)==YESNO_YES) + if (confirm_delete_yesno("") == YESNO_YES) { delete_bookmark(bookmark_file_name, item); bookmarks->reload = true; |