diff --git a/intl/msg_hash_ar.h b/intl/msg_hash_ar.h index 534f04c162..88b3ade95b 100644 --- a/intl/msg_hash_ar.h +++ b/intl/msg_hash_ar.h @@ -3718,3 +3718,7 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_IMAGES_AVAILABLE, "No images available." ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_NO_FAVORITES_AVAILABLE, + "No favorites available." + ) diff --git a/intl/msg_hash_chs.h b/intl/msg_hash_chs.h index 87804073cb..bc76244dbb 100644 --- a/intl/msg_hash_chs.h +++ b/intl/msg_hash_chs.h @@ -4737,3 +4737,7 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_IMAGES_AVAILABLE, "No images available." ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_NO_FAVORITES_AVAILABLE, + "No favorites available." + ) diff --git a/intl/msg_hash_cht.h b/intl/msg_hash_cht.h index 37b1f788b0..0b526f8321 100644 --- a/intl/msg_hash_cht.h +++ b/intl/msg_hash_cht.h @@ -3494,3 +3494,7 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_IMAGES_AVAILABLE, "No images available." ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_NO_FAVORITES_AVAILABLE, + "No favorites available." + ) diff --git a/intl/msg_hash_de.h b/intl/msg_hash_de.h index 18e166a442..18f288c08d 100644 --- a/intl/msg_hash_de.h +++ b/intl/msg_hash_de.h @@ -3630,3 +3630,7 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_IMAGES_AVAILABLE, "No images available." ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_NO_FAVORITES_AVAILABLE, + "No favorites available." + ) diff --git a/intl/msg_hash_el.h b/intl/msg_hash_el.h index 5b7887e625..3bf6e07e19 100644 --- a/intl/msg_hash_el.h +++ b/intl/msg_hash_el.h @@ -7722,3 +7722,7 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_IMAGES_AVAILABLE, "No images available." ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_NO_FAVORITES_AVAILABLE, + "No favorites available." + ) diff --git a/intl/msg_hash_eo.h b/intl/msg_hash_eo.h index 7e16db1fb3..642b47b408 100644 --- a/intl/msg_hash_eo.h +++ b/intl/msg_hash_eo.h @@ -3369,3 +3369,7 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_IMAGES_AVAILABLE, "No images available." ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_NO_FAVORITES_AVAILABLE, + "No favorites available." + ) diff --git a/intl/msg_hash_es.h b/intl/msg_hash_es.h index f6f66eda2f..63d48b5c1c 100644 --- a/intl/msg_hash_es.h +++ b/intl/msg_hash_es.h @@ -7659,3 +7659,7 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_IMAGES_AVAILABLE, "No images available." ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_NO_FAVORITES_AVAILABLE, + "No favorites available." + ) diff --git a/intl/msg_hash_fr.h b/intl/msg_hash_fr.h index 9952253f46..cdd7e695b5 100644 --- a/intl/msg_hash_fr.h +++ b/intl/msg_hash_fr.h @@ -3528,3 +3528,7 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_IMAGES_AVAILABLE, "No images available." ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_NO_FAVORITES_AVAILABLE, + "No favorites available." + ) diff --git a/intl/msg_hash_it.h b/intl/msg_hash_it.h index 1c5565120d..5cb6216a58 100644 --- a/intl/msg_hash_it.h +++ b/intl/msg_hash_it.h @@ -3588,3 +3588,7 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_IMAGES_AVAILABLE, "No images available." ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_NO_FAVORITES_AVAILABLE, + "No favorites available." + ) diff --git a/intl/msg_hash_ja.h b/intl/msg_hash_ja.h index 97e0f447dc..a662fff365 100644 --- a/intl/msg_hash_ja.h +++ b/intl/msg_hash_ja.h @@ -4037,3 +4037,7 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_IMAGES_AVAILABLE, "No images available." ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_NO_FAVORITES_AVAILABLE, + "No favorites available." + ) diff --git a/intl/msg_hash_ko.h b/intl/msg_hash_ko.h index 83522cd4a0..8be4801cab 100644 --- a/intl/msg_hash_ko.h +++ b/intl/msg_hash_ko.h @@ -3489,3 +3489,7 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_IMAGES_AVAILABLE, "No images available." ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_NO_FAVORITES_AVAILABLE, + "No favorites available." + ) diff --git a/intl/msg_hash_lbl.h b/intl/msg_hash_lbl.h index df82b2f9ad..090ca96d20 100644 --- a/intl/msg_hash_lbl.h +++ b/intl/msg_hash_lbl.h @@ -1733,3 +1733,5 @@ MSG_HASH(MENU_ENUM_LABEL_NO_VIDEOS_AVAILABLE, "no_videos") MSG_HASH(MENU_ENUM_LABEL_NO_IMAGES_AVAILABLE, "no_images") +MSG_HASH(MENU_ENUM_LABEL_NO_FAVORITES_AVAILABLE, + "no_favorites") diff --git a/intl/msg_hash_nl.h b/intl/msg_hash_nl.h index ea7fad42a8..b341cb9cae 100644 --- a/intl/msg_hash_nl.h +++ b/intl/msg_hash_nl.h @@ -3375,3 +3375,7 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_IMAGES_AVAILABLE, "Geen afbeeldingen beschikbaar." ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_NO_FAVORITES_AVAILABLE, + "Geen favorieten beschikbaar." + ) diff --git a/intl/msg_hash_pl.h b/intl/msg_hash_pl.h index daeaaa9497..b41f2464de 100644 --- a/intl/msg_hash_pl.h +++ b/intl/msg_hash_pl.h @@ -3791,3 +3791,7 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_IMAGES_AVAILABLE, "No images available." ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_NO_FAVORITES_AVAILABLE, + "No favorites available." + ) diff --git a/intl/msg_hash_pt_br.h b/intl/msg_hash_pt_br.h index da7cdcbe76..a10c59afc5 100644 --- a/intl/msg_hash_pt_br.h +++ b/intl/msg_hash_pt_br.h @@ -7753,3 +7753,7 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_IMAGES_AVAILABLE, "No images available." ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_NO_FAVORITES_AVAILABLE, + "No favorites available." + ) diff --git a/intl/msg_hash_pt_pt.h b/intl/msg_hash_pt_pt.h index 7cf963bce5..da038fa1d6 100644 --- a/intl/msg_hash_pt_pt.h +++ b/intl/msg_hash_pt_pt.h @@ -3455,3 +3455,7 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_IMAGES_AVAILABLE, "No images available." ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_NO_FAVORITES_AVAILABLE, + "No favorites available." + ) diff --git a/intl/msg_hash_ru.h b/intl/msg_hash_ru.h index ae0e5c8a5a..cc54746ee2 100644 --- a/intl/msg_hash_ru.h +++ b/intl/msg_hash_ru.h @@ -3658,3 +3658,7 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_IMAGES_AVAILABLE, "No images available." ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_NO_FAVORITES_AVAILABLE, + "No favorites available." + ) diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index fa2539944b..905d18752e 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -7753,3 +7753,7 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_IMAGES_AVAILABLE, "No images available." ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_NO_FAVORITES_AVAILABLE, + "No favorites available." + ) diff --git a/intl/msg_hash_vn.h b/intl/msg_hash_vn.h index 5301a35d17..5d2b3b1a21 100644 --- a/intl/msg_hash_vn.h +++ b/intl/msg_hash_vn.h @@ -3528,3 +3528,7 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_IMAGES_AVAILABLE, "No images available." ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_NO_FAVORITES_AVAILABLE, + "No favorites available." + ) diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index 3e28a9cb04..e88b3e4d8c 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -4740,6 +4740,8 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, menu_displaylist info->need_push = true; break; case DISPLAYLIST_FAVORITES: + info->count = 0; + { settings_t *settings = config_get_ptr(); menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list); @@ -4749,6 +4751,17 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, menu_displaylist &ret); } + if (info->count == 0) + { + menu_entries_append_enum(info->list, + msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_FAVORITES_AVAILABLE), + msg_hash_to_str(MENU_ENUM_LABEL_NO_FAVORITES_AVAILABLE), + MENU_ENUM_LABEL_NO_FAVORITES_AVAILABLE, + MENU_INFO_MESSAGE, 0, 0); + info->need_push_no_playlist_entries = false; + ret = 0; + } + ret = 0; info->need_refresh = true; info->need_push = true; diff --git a/msg_hash.h b/msg_hash.h index 2066217740..06bbec81f4 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -441,6 +441,7 @@ enum msg_hash_enums MENU_LABEL(NO_MUSIC_AVAILABLE), MENU_LABEL(NO_VIDEOS_AVAILABLE), MENU_LABEL(NO_IMAGES_AVAILABLE), + MENU_LABEL(NO_FAVORITES_AVAILABLE), MENU_ENUM_LABEL_DISCORD_IN_MENU, MENU_ENUM_LABEL_VALUE_DISCORD_IN_MENU,