From e42d4570cd24604208d077f3d9a11640c2936bc6 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 1 Oct 2021 20:11:40 +0200 Subject: [PATCH] moviebrowser: simplify user guidance with sort menue It's always easier to use blindly the cross control buttons, than looking for the colored buttons on the remote control. Nothing will change for users who want to use the colored keys directly, but they will get used to it. This was a directly user request. --- src/gui/moviebrowser/mb.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/moviebrowser/mb.cpp b/src/gui/moviebrowser/mb.cpp index 7190a15c6..7a4a2d719 100644 --- a/src/gui/moviebrowser/mb.cpp +++ b/src/gui/moviebrowser/mb.cpp @@ -2228,6 +2228,10 @@ bool CMovieBrowser::onButtonPressMainFrame(neutrino_msg_t msg) CMenuWidget m(LOCALE_MOVIEBROWSER_FOOT_SORT, NEUTRINO_ICON_SETTINGS); m.addIntroItems(); + m.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_INFO_PREVPLAYDATE, true, NULL, selector, to_string(MB_INFO_PREVPLAYDATE).c_str(), CRCInput::RC_red)); + m.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_INFO_RECORDDATE, true, NULL, selector, to_string(MB_INFO_RECORDDATE).c_str(), CRCInput::RC_green)); + m.addItem(new CMenuSeparator(CMenuSeparator::LINE)); +#if 0 // add PREVPLAYDATE/RECORDDATE sort buttons to footer m.addKey(CRCInput::RC_red, selector, to_string(MB_INFO_PREVPLAYDATE).c_str()); m.addKey(CRCInput::RC_green, selector, to_string(MB_INFO_RECORDDATE).c_str()); @@ -2239,7 +2243,7 @@ bool CMovieBrowser::onButtonPressMainFrame(neutrino_msg_t msg) int footerButtonsCount = sizeof(footerButtons) / sizeof(button_label); m.setFooter(footerButtons, footerButtonsCount); - +#endif // just show sorting options for displayed rows; sorted by rows for (int row = 0; row < MB_MAX_ROWS && row < m_settings.browserRowNr; row++) {