Commit bdcf692
committed
ozone+menu_setting: Hide History/Images/Music/Video tabs when history is disabled
The ozone sidebar exposes History, Images, Music, and Video tabs whose
content is populated exclusively from the playlists managed by
CMD_EVENT_HISTORY_INIT. When history_list_enable is OFF those playlists
are never initialized, so the tabs become permanent dead ends - selecting
History, for example, just shows "No History Available" forever.
Gate the four tabs in ozone_refresh_system_tabs_list on
history_list_enable in addition to the existing menu_content_show_*
flags. Favorites is unaffected (independent setting).
Also wire MENU_ENUM_LABEL_HISTORY_LIST_ENABLE into the
MENU_ENVIRON_RESET_HORIZONTAL_LIST dispatch in general_write_handler so
toggling the setting refreshes the tab list immediately rather than
requiring a restart, matching the behaviour of the neighbouring
menu_content_show_* toggles.1 parent 70f24be commit bdcf692
2 files changed
Lines changed: 6 additions & 5 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5283 | 5283 | | |
5284 | 5284 | | |
5285 | 5285 | | |
5286 | | - | |
| 5286 | + | |
5287 | 5287 | | |
5288 | 5288 | | |
5289 | 5289 | | |
5290 | 5290 | | |
5291 | | - | |
| 5291 | + | |
5292 | 5292 | | |
5293 | 5293 | | |
5294 | 5294 | | |
5295 | 5295 | | |
5296 | 5296 | | |
5297 | 5297 | | |
5298 | | - | |
| 5298 | + | |
5299 | 5299 | | |
5300 | 5300 | | |
5301 | 5301 | | |
5302 | | - | |
| 5302 | + | |
5303 | 5303 | | |
5304 | 5304 | | |
5305 | 5305 | | |
5306 | | - | |
| 5306 | + | |
5307 | 5307 | | |
5308 | 5308 | | |
5309 | 5309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9322 | 9322 | | |
9323 | 9323 | | |
9324 | 9324 | | |
| 9325 | + | |
9325 | 9326 | | |
9326 | 9327 | | |
9327 | 9328 | | |
| |||
0 commit comments