Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MythVideo: Move two top level menu items into submenus.

"Enable File Browse Mode" and "Enable Flat View" probably shouldn't even exist.  But if they must for now, move them into the "Change View" menu where they make sense in context and aren't as easy to mistakenly activate and cause trouble.
  • Loading branch information...
commit 1e7ebbf4a34da0f8999020fd3244839b842cf79c 1 parent de7acc4
Robert McNamara authored
Showing with 14 additions and 14 deletions.
  1. +14 −14 mythplugins/mythvideo/mythvideo/videodlg.cpp
View
28 mythplugins/mythvideo/mythvideo/videodlg.cpp
@@ -2514,20 +2514,6 @@ void VideoDialog::DisplayMenu()
m_menuPopup->AddButton(tr("Change View"), SLOT(ViewMenu()), true);
- if (m_d->m_isFileBrowser)
- m_menuPopup->AddButton(tr("Disable File Browse Mode"),
- SLOT(ToggleBrowseMode()));
- else
- m_menuPopup->AddButton(tr("Enable File Browse Mode"),
- SLOT(ToggleBrowseMode()));
-
- if (m_d->m_isFlatList)
- m_menuPopup->AddButton(tr("Disable Flat View"),
- SLOT(ToggleFlatView()));
- else
- m_menuPopup->AddButton(tr("Enable Flat View"),
- SLOT(ToggleFlatView()));
-
m_menuPopup->AddButton(tr("Settings"), SLOT(SettingsMenu()), true);
}
@@ -2560,6 +2546,20 @@ void VideoDialog::ViewMenu()
if (!(m_d->m_type & DLG_MANAGER))
m_menuPopup->AddButton(tr("Switch to Manage View"),
SLOT(SwitchManager()));
+
+ if (m_d->m_isFileBrowser)
+ m_menuPopup->AddButton(tr("Disable File Browse Mode"),
+ SLOT(ToggleBrowseMode()));
+ else
+ m_menuPopup->AddButton(tr("Enable File Browse Mode"),
+ SLOT(ToggleBrowseMode()));
+
+ if (m_d->m_isFlatList)
+ m_menuPopup->AddButton(tr("Disable Flat View"),
+ SLOT(ToggleFlatView()));
+ else
+ m_menuPopup->AddButton(tr("Enable Flat View"),
+ SLOT(ToggleFlatView()));
}
/** \fn VideoDialog::SettingsMenu()
Please sign in to comment.
Something went wrong with that request. Please try again.