Commit c3bea09c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: Fix minimalView state in menus.

parent 7ab733f2
......@@ -781,9 +781,6 @@ void MainInterface::dockPlaylist( pl_dock_e i_pos )
void MainInterface::toggleMinimalView()
{
/* HACK for minimalView, see menus.cpp */
if( !menuBar()->isVisible() ) QVLCMenu::minimalViewAction->toggle();
if( i_visualmode != QT_ALWAYS_VIDEO_MODE &&
i_visualmode != QT_MINIMAL_MODE )
{ /* NORMAL MODE then */
......@@ -800,6 +797,8 @@ void MainInterface::toggleMinimalView()
TOGGLEV( statusBar() );
TOGGLEV( inputC );
doComponentsUpdate();
QVLCMenu::minimalViewAction->setChecked( bgWasVisible );
}
/* Video widget cannot do this synchronously as it runs in another thread */
......
......@@ -899,7 +899,7 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
action->setChecked( !( mi->getControlsVisibilityStatus() &
CONTROLS_VISIBLE ) );
action = submenu->addAction( QIcon( "" ),
qtr( "Toggle Fullscreen Interface" ),
qtr( "Fullscreen Interface" ),
mi, SLOT( toggleFullScreen() ) );
action->setCheckable( true );
action->setChecked( mi->isFullScreen() );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment