Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Minor confirm prompt adjustments

* Rename LANG_RESET_ASK to LANG_ARE_YOU_SURE,
so that it matches the actual language string
(translations remain valid), and can be repurposed
for generic confirmation prompts, where the
first line says "Are you sure?", and the second
line reiterates the selected action

* Add "Reset Settings" as second line to the prompt
shown before resetting settings, instead of just
asking "Are you sure?"

* Make Shuffle prompt consistent between WPS and
Playlist Viewer, and ask whether user is sure they
want to Shuffle instead of warning them that the
current playlist will be erased, which was a bit
misleading

* Explicitly say "Cancelled" when user answers NO to
erasing the current playlist or to overwriting a file.
Improves consistency with other prompts that are
displayed for potentially destructive actions, e.g.
before items are deleted, renamed, saved, or reset.

* PictureFlow: Prompt before rebuilding/updating cache

Change-Id: Id8ae36db7187315eb1a374701307e6ab4dcdbd1d

+169 -114
+3 -1
apps/fileop.c
··· 510 510 int rc; 511 511 if (file_exists(dst.path)) { 512 512 /* If user chooses not to overwrite, cancel */ 513 - if (!yesno_pop(ID2P(LANG_REALLY_OVERWRITE))) { 513 + if (!yesno_pop(ID2P(LANG_REALLY_OVERWRITE))) 514 + { 515 + splash(HZ, ID2P(LANG_CANCEL)); 514 516 return FORC_NOOVERWRT; 515 517 } 516 518
+26 -5
apps/gui/yesno.c
··· 368 368 main_message, yes_message, no_message); 369 369 } 370 370 371 - /* Function to manipulate all yesno dialogues. 372 - This function needs the prompt text as an argument. */ 373 - bool yesno_pop(const char* text) 371 + static bool yesno_pop_lines(const char *lines[], int line_cnt) 374 372 { 375 - const char *lines[]={text}; 376 - const struct text_message message={lines, 1}; 373 + const struct text_message message={lines, line_cnt}; 377 374 bool ret = (gui_syncyesno_run(&message,NULL,NULL)== YESNO_YES); 378 375 FOR_NB_SCREENS(i) 379 376 screens[i].clear_viewport(); 380 377 return ret; 381 378 } 379 + 380 + /* YES/NO dialog, uses text parameter as prompt */ 381 + bool yesno_pop(const char* text) 382 + { 383 + const char *lines[]= {text}; 384 + return yesno_pop_lines(lines, 1); 385 + } 386 + 387 + /* YES/NO dialog, asks "Are you sure?", displays 388 + text parameter on second line. 389 + 390 + Says "Cancelled" if answered negatively. 391 + */ 392 + bool yesno_pop_confirm(const char* text) 393 + { 394 + bool confirmed; 395 + const char *lines[] = {ID2P(LANG_ARE_YOU_SURE), text}; 396 + confirmed = yesno_pop_lines(lines, 2); 397 + 398 + if (!confirmed) 399 + splash(HZ, ID2P(LANG_CANCEL)); 400 + 401 + return confirmed; 402 + }
+1
apps/gui/yesno.h
··· 57 57 const struct text_message * no_message); 58 58 59 59 bool yesno_pop(const char* text); 60 + bool yesno_pop_confirm(const char* text); 60 61 61 62 #endif /* _GUI_YESNO_H_ */
+26 -5
apps/hosted/android/yesno.c
··· 130 130 131 131 #endif 132 132 133 - /* Function to manipulate all yesno dialogues. 134 - This function needs the output text as an argument. */ 135 - bool yesno_pop(const char* text) 133 + static bool yesno_pop_lines(const char *lines[], int line_cnt) 136 134 { 137 - const char *lines[]={text}; 138 - const struct text_message message={lines, 1}; 135 + const struct text_message message={lines, line_cnt}; 139 136 bool ret = (gui_syncyesno_run(&message,NULL,NULL)== YESNO_YES); 140 137 FOR_NB_SCREENS(i) 141 138 screens[i].clear_viewport(); 142 139 return ret; 143 140 } 141 + 142 + /* YES/NO dialog, uses text parameter as prompt */ 143 + bool yesno_pop(const char* text) 144 + { 145 + const char *lines[]= {text}; 146 + return yesno_pop_lines(lines, 1); 147 + } 148 + 149 + /* YES/NO dialog, asks "Are you sure?", displays 150 + text parameter on second line. 151 + 152 + Says "Cancelled" if answered negatively. 153 + */ 154 + bool yesno_pop_confirm(const char* text) 155 + { 156 + bool confirmed; 157 + const char *lines[] = {ID2P(LANG_ARE_YOU_SURE), text}; 158 + confirmed = yesno_pop_lines(lines, 2); 159 + 160 + if (!confirmed) 161 + splash(HZ, ID2P(LANG_CANCEL)); 162 + 163 + return confirmed; 164 + }
+2 -2
apps/lang/arabic.lang
··· 3194 3194 </voice> 3195 3195 </phrase> 3196 3196 <phrase> 3197 - id: LANG_RESET_ASK 3198 - desc: confirm to reset settings 3197 + id: LANG_ARE_YOU_SURE 3198 + desc: confirm action 3199 3199 user: core 3200 3200 <source> 3201 3201 *: "Are You Sure?"
+2 -2
apps/lang/basque.lang
··· 227 227 </voice> 228 228 </phrase> 229 229 <phrase> 230 - id: LANG_RESET_ASK 231 - desc: confirm to reset settings 230 + id: LANG_ARE_YOU_SURE 231 + desc: confirm action 232 232 user: core 233 233 <source> 234 234 *: "Are You Sure?"
+2 -2
apps/lang/bulgarian.lang
··· 231 231 </voice> 232 232 </phrase> 233 233 <phrase> 234 - id: LANG_RESET_ASK 235 - desc: confirm to reset settings 234 + id: LANG_ARE_YOU_SURE 235 + desc: confirm action 236 236 user: core 237 237 <source> 238 238 *: "Are You Sure?"
+2 -2
apps/lang/catala.lang
··· 229 229 </voice> 230 230 </phrase> 231 231 <phrase> 232 - id: LANG_RESET_ASK 233 - desc: confirm to reset settings 232 + id: LANG_ARE_YOU_SURE 233 + desc: confirm action 234 234 user: core 235 235 <source> 236 236 *: "Are You Sure?"
+2 -2
apps/lang/chinese-simp.lang
··· 8757 8757 </voice> 8758 8758 </phrase> 8759 8759 <phrase> 8760 - id: LANG_RESET_ASK 8761 - desc: confirm to reset settings 8760 + id: LANG_ARE_YOU_SURE 8761 + desc: confirm action 8762 8762 user: core 8763 8763 <source> 8764 8764 *: "Are You Sure?"
+2 -2
apps/lang/chinese-trad.lang
··· 8944 8944 </voice> 8945 8945 </phrase> 8946 8946 <phrase> 8947 - id: LANG_RESET_ASK 8948 - desc: confirm to reset settings 8947 + id: LANG_ARE_YOU_SURE 8948 + desc: confirm action 8949 8949 user: core 8950 8950 <source> 8951 8951 *: "Are You Sure?"
+2 -2
apps/lang/czech.lang
··· 231 231 </voice> 232 232 </phrase> 233 233 <phrase> 234 - id: LANG_RESET_ASK 235 - desc: confirm to reset settings 234 + id: LANG_ARE_YOU_SURE 235 + desc: confirm action 236 236 user: core 237 237 <source> 238 238 *: "Are You Sure?"
+2 -2
apps/lang/dansk.lang
··· 9785 9785 </voice> 9786 9786 </phrase> 9787 9787 <phrase> 9788 - id: LANG_RESET_ASK 9789 - desc: confirm to reset settings 9788 + id: LANG_ARE_YOU_SURE 9789 + desc: confirm action 9790 9790 user: core 9791 9791 <source> 9792 9792 *: "Are You Sure?"
+2 -2
apps/lang/deutsch.lang
··· 248 248 </voice> 249 249 </phrase> 250 250 <phrase> 251 - id: LANG_RESET_ASK 252 - desc: confirm to reset settings 251 + id: LANG_ARE_YOU_SURE 252 + desc: confirm action 253 253 user: core 254 254 <source> 255 255 *: "Are You Sure?"
+2 -2
apps/lang/english-us.lang
··· 225 225 </voice> 226 226 </phrase> 227 227 <phrase> 228 - id: LANG_RESET_ASK 229 - desc: confirm to reset settings 228 + id: LANG_ARE_YOU_SURE 229 + desc: confirm action 230 230 user: core 231 231 <source> 232 232 *: "Are You Sure?"
+2 -2
apps/lang/english.lang
··· 310 310 </voice> 311 311 </phrase> 312 312 <phrase> 313 - id: LANG_RESET_ASK 314 - desc: confirm to reset settings 313 + id: LANG_ARE_YOU_SURE 314 + desc: confirm action 315 315 user: core 316 316 <source> 317 317 *: "Are You Sure?"
+2 -2
apps/lang/espanol.lang
··· 9156 9156 </voice> 9157 9157 </phrase> 9158 9158 <phrase> 9159 - id: LANG_RESET_ASK 9160 - desc: confirm to reset settings 9159 + id: LANG_ARE_YOU_SURE 9160 + desc: confirm action 9161 9161 user: core 9162 9162 <source> 9163 9163 *: "Are You Sure?"
+2 -2
apps/lang/finnish.lang
··· 9675 9675 </voice> 9676 9676 </phrase> 9677 9677 <phrase> 9678 - id: LANG_RESET_ASK 9679 - desc: confirm to reset settings 9678 + id: LANG_ARE_YOU_SURE 9679 + desc: confirm action 9680 9680 user: core 9681 9681 <source> 9682 9682 *: "Are You Sure?"
+2 -2
apps/lang/francais.lang
··· 258 258 </voice> 259 259 </phrase> 260 260 <phrase> 261 - id: LANG_RESET_ASK 262 - desc: confirm to reset settings 261 + id: LANG_ARE_YOU_SURE 262 + desc: confirm action 263 263 user: core 264 264 <source> 265 265 *: "Are You Sure?"
+2 -2
apps/lang/galego.lang
··· 11934 11934 </voice> 11935 11935 </phrase> 11936 11936 <phrase> 11937 - id: LANG_RESET_ASK 11938 - desc: confirm to reset settings 11937 + id: LANG_ARE_YOU_SURE 11938 + desc: confirm action 11939 11939 user: core 11940 11940 <source> 11941 11941 *: "Are You Sure?"
+2 -2
apps/lang/greek.lang
··· 231 231 </voice> 232 232 </phrase> 233 233 <phrase> 234 - id: LANG_RESET_ASK 235 - desc: confirm to reset settings 234 + id: LANG_ARE_YOU_SURE 235 + desc: confirm action 236 236 user: core 237 237 <source> 238 238 *: "Are You Sure?"
+2 -2
apps/lang/hebrew.lang
··· 233 233 </voice> 234 234 </phrase> 235 235 <phrase> 236 - id: LANG_RESET_ASK 237 - desc: confirm to reset settings 236 + id: LANG_ARE_YOU_SURE 237 + desc: confirm action 238 238 user: core 239 239 <source> 240 240 *: "Are You Sure?"
+2 -2
apps/lang/hrvatski.lang
··· 227 227 </voice> 228 228 </phrase> 229 229 <phrase> 230 - id: LANG_RESET_ASK 231 - desc: confirm to reset settings 230 + id: LANG_ARE_YOU_SURE 231 + desc: confirm action 232 232 user: core 233 233 <source> 234 234 *: "Are You Sure?"
+2 -2
apps/lang/italiano.lang
··· 229 229 </voice> 230 230 </phrase> 231 231 <phrase> 232 - id: LANG_RESET_ASK 233 - desc: confirm to reset settings 232 + id: LANG_ARE_YOU_SURE 233 + desc: confirm action 234 234 user: core 235 235 <source> 236 236 *: "Are You Sure?"
+2 -2
apps/lang/japanese.lang
··· 234 234 </voice> 235 235 </phrase> 236 236 <phrase> 237 - id: LANG_RESET_ASK 238 - desc: confirm to reset settings 237 + id: LANG_ARE_YOU_SURE 238 + desc: confirm action 239 239 user: core 240 240 <source> 241 241 *: "Are You Sure?"
+2 -2
apps/lang/korean.lang
··· 242 242 </voice> 243 243 </phrase> 244 244 <phrase> 245 - id: LANG_RESET_ASK 246 - desc: confirm to reset settings 245 + id: LANG_ARE_YOU_SURE 246 + desc: confirm action 247 247 user: core 248 248 <source> 249 249 *: "Are You Sure?"
+2 -2
apps/lang/latviesu.lang
··· 228 228 </voice> 229 229 </phrase> 230 230 <phrase> 231 - id: LANG_RESET_ASK 232 - desc: confirm to reset settings 231 + id: LANG_ARE_YOU_SURE 232 + desc: confirm action 233 233 user: core 234 234 <source> 235 235 *: "Are You Sure?"
+2 -2
apps/lang/lietuviu.lang
··· 298 298 </voice> 299 299 </phrase> 300 300 <phrase> 301 - id: LANG_RESET_ASK 302 - desc: confirm to reset settings 301 + id: LANG_ARE_YOU_SURE 302 + desc: confirm action 303 303 user: core 304 304 <source> 305 305 *: "Are You Sure?"
+2 -2
apps/lang/magyar.lang
··· 228 228 </voice> 229 229 </phrase> 230 230 <phrase> 231 - id: LANG_RESET_ASK 232 - desc: confirm to reset settings 231 + id: LANG_ARE_YOU_SURE 232 + desc: confirm action 233 233 user: core 234 234 <source> 235 235 *: "Are You Sure?"
+2 -2
apps/lang/moldoveneste.lang
··· 9004 9004 </voice> 9005 9005 </phrase> 9006 9006 <phrase> 9007 - id: LANG_RESET_ASK 9008 - desc: confirm to reset settings 9007 + id: LANG_ARE_YOU_SURE 9008 + desc: confirm action 9009 9009 user: core 9010 9010 <source> 9011 9011 *: "Are You Sure?"
+2 -2
apps/lang/nederlands.lang
··· 8965 8965 </voice> 8966 8966 </phrase> 8967 8967 <phrase> 8968 - id: LANG_RESET_ASK 8969 - desc: confirm to reset settings 8968 + id: LANG_ARE_YOU_SURE 8969 + desc: confirm action 8970 8970 user: core 8971 8971 <source> 8972 8972 *: "Are You Sure?"
+2 -2
apps/lang/norsk-nynorsk.lang
··· 9779 9779 </voice> 9780 9780 </phrase> 9781 9781 <phrase> 9782 - id: LANG_RESET_ASK 9783 - desc: confirm to reset settings 9782 + id: LANG_ARE_YOU_SURE 9783 + desc: confirm action 9784 9784 user: core 9785 9785 <source> 9786 9786 *: "Are You Sure?"
+2 -2
apps/lang/norsk.lang
··· 10042 10042 </voice> 10043 10043 </phrase> 10044 10044 <phrase> 10045 - id: LANG_RESET_ASK 10046 - desc: confirm to reset settings 10045 + id: LANG_ARE_YOU_SURE 10046 + desc: confirm action 10047 10047 user: core 10048 10048 <source> 10049 10049 *: "Are You Sure?"
+2 -2
apps/lang/polski.lang
··· 235 235 </voice> 236 236 </phrase> 237 237 <phrase> 238 - id: LANG_RESET_ASK 239 - desc: confirm to reset settings 238 + id: LANG_ARE_YOU_SURE 239 + desc: confirm action 240 240 user: core 241 241 <source> 242 242 *: "Are You Sure?"
+2 -2
apps/lang/portugues-brasileiro.lang
··· 230 230 </voice> 231 231 </phrase> 232 232 <phrase> 233 - id: LANG_RESET_ASK 234 - desc: confirm to reset settings 233 + id: LANG_ARE_YOU_SURE 234 + desc: confirm action 235 235 user: core 236 236 <source> 237 237 *: "Are You Sure?"
+2 -2
apps/lang/portugues.lang
··· 9203 9203 </voice> 9204 9204 </phrase> 9205 9205 <phrase> 9206 - id: LANG_RESET_ASK 9207 - desc: confirm to reset settings 9206 + id: LANG_ARE_YOU_SURE 9207 + desc: confirm action 9208 9208 user: core 9209 9209 <source> 9210 9210 *: "Are You Sure?"
+2 -2
apps/lang/romaneste.lang
··· 9004 9004 </voice> 9005 9005 </phrase> 9006 9006 <phrase> 9007 - id: LANG_RESET_ASK 9008 - desc: confirm to reset settings 9007 + id: LANG_ARE_YOU_SURE 9008 + desc: confirm action 9009 9009 user: core 9010 9010 <source> 9011 9011 *: "Are You Sure?"
+2 -2
apps/lang/russian.lang
··· 9103 9103 </voice> 9104 9104 </phrase> 9105 9105 <phrase> 9106 - id: LANG_RESET_ASK 9107 - desc: confirm to reset settings 9106 + id: LANG_ARE_YOU_SURE 9107 + desc: confirm action 9108 9108 user: core 9109 9109 <source> 9110 9110 *: "Are You Sure?"
+2 -2
apps/lang/slovak.lang
··· 227 227 </voice> 228 228 </phrase> 229 229 <phrase> 230 - id: LANG_RESET_ASK 231 - desc: confirm to reset settings 230 + id: LANG_ARE_YOU_SURE 231 + desc: confirm action 232 232 user: core 233 233 <source> 234 234 *: "Are You Sure?"
+2 -2
apps/lang/slovenscina.lang
··· 11553 11553 </voice> 11554 11554 </phrase> 11555 11555 <phrase> 11556 - id: LANG_RESET_ASK 11557 - desc: confirm to reset settings 11556 + id: LANG_ARE_YOU_SURE 11557 + desc: confirm action 11558 11558 user: core 11559 11559 <source> 11560 11560 *: "Are You Sure?"
+2 -2
apps/lang/srpski.lang
··· 241 241 </voice> 242 242 </phrase> 243 243 <phrase> 244 - id: LANG_RESET_ASK 245 - desc: confirm to reset settings 244 + id: LANG_ARE_YOU_SURE 245 + desc: confirm action 246 246 user: core 247 247 <source> 248 248 *: "Are You Sure?"
+2 -2
apps/lang/svenska.lang
··· 234 234 </voice> 235 235 </phrase> 236 236 <phrase> 237 - id: LANG_RESET_ASK 238 - desc: confirm to reset settings 237 + id: LANG_ARE_YOU_SURE 238 + desc: confirm action 239 239 user: core 240 240 <source> 241 241 *: "Are You Sure?"
+2 -2
apps/lang/tagalog.lang
··· 227 227 </voice> 228 228 </phrase> 229 229 <phrase> 230 - id: LANG_RESET_ASK 231 - desc: confirm to reset settings 230 + id: LANG_ARE_YOU_SURE 231 + desc: confirm action 232 232 user: core 233 233 <source> 234 234 *: "Are You Sure?"
+2 -2
apps/lang/thai.lang
··· 228 228 </voice> 229 229 </phrase> 230 230 <phrase> 231 - id: LANG_RESET_ASK 232 - desc: confirm to reset settings 231 + id: LANG_ARE_YOU_SURE 232 + desc: confirm action 233 233 user: core 234 234 <source> 235 235 *: "Are You Sure?"
+2 -2
apps/lang/turkce.lang
··· 217 217 </voice> 218 218 </phrase> 219 219 <phrase> 220 - id: LANG_RESET_ASK 221 - desc: confirm to reset settings 220 + id: LANG_ARE_YOU_SURE 221 + desc: confirm action 222 222 user: core 223 223 <source> 224 224 *: "Are You Sure?"
+2 -2
apps/lang/ukrainian.lang
··· 228 228 </voice> 229 229 </phrase> 230 230 <phrase> 231 - id: LANG_RESET_ASK 232 - desc: confirm to reset settings 231 + id: LANG_ARE_YOU_SURE 232 + desc: confirm action 233 233 user: core 234 234 <source> 235 235 *: "Are You Sure?"
+2 -2
apps/lang/vlaams.lang
··· 9651 9651 </voice> 9652 9652 </phrase> 9653 9653 <phrase> 9654 - id: LANG_RESET_ASK 9655 - desc: confirm to reset settings 9654 + id: LANG_ARE_YOU_SURE 9655 + desc: confirm action 9656 9656 user: core 9657 9657 <source> 9658 9658 *: "Are You Sure?"
+2 -2
apps/lang/walon.lang
··· 232 232 </voice> 233 233 </phrase> 234 234 <phrase> 235 - id: LANG_RESET_ASK 236 - desc: confirm to reset settings 235 + id: LANG_ARE_YOU_SURE 236 + desc: confirm action 237 237 user: core 238 238 <source> 239 239 *: "Are You Sure?"
+2 -2
apps/menus/main_menu.c
··· 57 57 58 58 static int reset_settings(void) 59 59 { 60 - static const char *lines[]={ID2P(LANG_RESET_ASK)}; 60 + static const char *lines[]={ID2P(LANG_ARE_YOU_SURE), ID2P(LANG_RESET)}; 61 61 static const char *yes_lines[]={ 62 62 ID2P(LANG_SETTINGS), 63 63 ID2P(LANG_RESET_DONE_CLEAR) ··· 66 66 ID2P(LANG_SETTINGS), 67 67 ID2P(LANG_CANCEL) 68 68 }; 69 - static const struct text_message message={lines, 1}; 69 + static const struct text_message message={lines, 2}; 70 70 static const struct text_message yes_message={yes_lines, 2}; 71 71 static const struct text_message no_message={no_lines, 2}; 72 72
+7 -1
apps/misc.c
··· 196 196 {ID2P(LANG_WARN_ERASEDYNPLAYLIST_PROMPT)}; 197 197 static const struct text_message message={lines, 1}; 198 198 199 - return (gui_syncyesno_run(&message, NULL, NULL) == YESNO_YES); 199 + if (gui_syncyesno_run(&message, NULL, NULL) == YESNO_YES) 200 + return true; 201 + else 202 + { 203 + splash(HZ, ID2P(LANG_CANCEL)); 204 + return false; 205 + } 200 206 } 201 207 else 202 208 return true;
+1 -1
apps/onplay.c
··· 183 183 /* CONTEXT_WPS playlist options */ 184 184 static bool shuffle_playlist(void) 185 185 { 186 - if (!warn_on_pl_erase()) 186 + if (!yesno_pop_confirm(ID2P(LANG_SHUFFLE))) 187 187 return false; 188 188 playlist_sort(NULL, true); 189 189 playlist_randomise(NULL, current_tick, true);
+2
apps/playlist_viewer.c
··· 774 774 return show_track_info(current_track); 775 775 case 5: 776 776 /* shuffle */ 777 + if (!yesno_pop_confirm(ID2P(LANG_SHUFFLE))) 778 + return PV_CONTEXT_UNCHANGED; 777 779 playlist_sort(viewer.playlist, !viewer.playlist); 778 780 playlist_randomise(viewer.playlist, current_tick, !viewer.playlist); 779 781 viewer.selected_track = 0;
+1
apps/plugin.c
··· 844 844 the API gets incompatible */ 845 845 add_playbacklog, 846 846 &device_battery_tables, 847 + yesno_pop_confirm, 847 848 }; 848 849 849 850 static int plugin_buffer_handle;
+1
apps/plugin.h
··· 993 993 the API gets incompatible */ 994 994 void (*add_playbacklog)(struct mp3entry *id3); 995 995 struct battery_tables_t *device_battery_tables; 996 + bool (*yesno_pop_confirm)(const char* text); 996 997 }; 997 998 998 999 /* plugin header */
+4 -13
apps/plugins/main_menu_config.c
··· 234 234 rb->gui_synclist_select_item(&list, cur_sel + 1); /* speaks */ 235 235 changed = true; 236 236 break; 237 - case 2:; 238 - static const char *lines[] = 239 - {ID2P(LANG_RESET_ASK), ID2P(LANG_LOAD_DEFAULT_CONFIGURATION)}; 240 - static const struct text_message message={lines, 2}; 241 - 242 - switch(rb->gui_syncyesno_run(&message, NULL, NULL)) 237 + case 2: 238 + if (rb->yesno_pop_confirm(ID2P(LANG_LOAD_DEFAULT_CONFIGURATION))) 243 239 { 244 - case YESNO_YES: 245 - rb->root_menu_set_default(&rb->global_settings->root_menu_customized, NULL); 246 - load_from_cfg(); 247 - break; 248 - default: 249 - rb->splash(HZ, ID2P(LANG_CANCEL)); 250 - break; 240 + rb->root_menu_set_default(&rb->global_settings->root_menu_customized, NULL); 241 + load_from_cfg(); 251 242 } 252 243 /* fall-through */ 253 244 default:
+9
apps/plugins/pictureflow/pictureflow.c
··· 3590 3590 rb->set_bool(rb->str(LANG_RESIZE_COVERS), &pf_cfg.resize); 3591 3591 if (old_val == pf_cfg.resize) /* changed? */ 3592 3592 break; 3593 + else if (!rb->yesno_pop_confirm(ID2P(LANG_RESIZE_COVERS))) 3594 + { 3595 + pf_cfg.resize = old_val; 3596 + break; 3597 + } 3593 3598 3594 3599 pf_cfg.update_albumart = false; 3595 3600 pf_cfg.cache_version = CACHE_REBUILD; ··· 3766 3771 break; 3767 3772 #endif 3768 3773 case PF_REBUILD_CACHE: 3774 + if (!rb->yesno_pop_confirm(ID2P(LANG_REBUILD_CACHE))) 3775 + break; 3769 3776 pf_cfg.update_albumart = false; 3770 3777 pf_cfg.cache_version = CACHE_REBUILD; 3771 3778 rb->remove(EMPTY_SLIDE); ··· 3773 3780 CONFIG_NUM_ITEMS, CONFIG_VERSION); 3774 3781 return -3; /* re-init */ 3775 3782 case PF_UPDATE_CACHE: 3783 + if (!rb->yesno_pop_confirm(ID2P(LANG_UPDATE_CACHE))) 3784 + break; 3776 3785 pf_cfg.update_albumart = true; 3777 3786 pf_cfg.cache_version = CACHE_REBUILD; 3778 3787 rb->remove(EMPTY_SLIDE);