From db1b823ac3ea524d80a83876c9c99593d29f3817 Mon Sep 17 00:00:00 2001 From: Torne Wuff Date: Mon, 5 Jul 2010 16:39:00 +0000 Subject: Provide the option to automatically update existing bookmark files on stop, without creating ones that don't already exist. Idea from FS#6272, but implemented differently. If you set "Update on stop" then it will check if the bookmark file exists on stop, and if so, write a new one without prompting. If the file doesn't exist, it will do whatever the "Bookmark on stop" setting tells it to do. This works quite well if you have an audiobook/podcast/etc folder/playlist: just bookmark it manually once and it will get bookmarked automatically after that, without creating bookmarks for regular music. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27294 a1c6a512-1295-4272-9138-f99709370657 --- apps/menus/settings_menu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/menus/settings_menu.c') diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c index bcd49c942c..efd18b2204 100644 --- a/apps/menus/settings_menu.c +++ b/apps/menus/settings_menu.c @@ -347,11 +347,12 @@ static int bmark_callback(int action,const struct menu_item_ex *this_item) } MENUITEM_SETTING(autocreatebookmark, &global_settings.autocreatebookmark, bmark_callback); +MENUITEM_SETTING(autoupdatebookmark, &global_settings.autoupdatebookmark, NULL); MENUITEM_SETTING(autoloadbookmark, &global_settings.autoloadbookmark, NULL); MENUITEM_SETTING(usemrb, &global_settings.usemrb, NULL); MAKE_MENU(bookmark_settings_menu, ID2P(LANG_BOOKMARK_SETTINGS), 0, Icon_Bookmark, - &autocreatebookmark, &autoloadbookmark, &usemrb); + &autocreatebookmark, &autoupdatebookmark, &autoloadbookmark, &usemrb); /* BOOKMARK MENU */ /***********************************/ -- cgit v1.2.3