Commit 175d1beb authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Fix the activation or not of advanced buttons in fullscreen controller

parent 132030ac
...@@ -889,7 +889,7 @@ void ControlsWidget::enableVideo( bool enable ) ...@@ -889,7 +889,7 @@ void ControlsWidget::enableVideo( bool enable )
void ControlsWidget::toggleAdvanced() void ControlsWidget::toggleAdvanced()
{ {
if( !VISIBLE( advControls ) ) if( advControls && !b_advancedVisible )
{ {
advControls->show(); advControls->show();
b_advancedVisible = true; b_advancedVisible = true;
...@@ -961,6 +961,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i, ...@@ -961,6 +961,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i,
#ifdef WIN32TRICK #ifdef WIN32TRICK
setWindowOpacity( 0.0 ); setWindowOpacity( 0.0 );
fscHidden = true; fscHidden = true;
adjustSize();
show(); show();
#endif #endif
...@@ -977,6 +978,7 @@ FullscreenControllerWidget::~FullscreenControllerWidget() ...@@ -977,6 +978,7 @@ FullscreenControllerWidget::~FullscreenControllerWidget()
*/ */
void FullscreenControllerWidget::showFSC() void FullscreenControllerWidget::showFSC()
{ {
adjustSize();
#ifdef WIN32TRICK #ifdef WIN32TRICK
// after quiting and going to fs, we need to call show() // after quiting and going to fs, we need to call show()
if( isHidden() ) if( isHidden() )
......
...@@ -832,6 +832,7 @@ void MainInterface::doComponentsUpdate() ...@@ -832,6 +832,7 @@ void MainInterface::doComponentsUpdate()
void MainInterface::toggleAdvanced() void MainInterface::toggleAdvanced()
{ {
controls->toggleAdvanced(); controls->toggleAdvanced();
fullscreenControls->toggleAdvanced();
} }
/* Get the visibility status of the controls (hidden or not, advanced or not) */ /* Get the visibility status of the controls (hidden or not, advanced or not) */
......
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