1
mirror of https://code.videolan.org/videolan/vlc synced 2024-07-21 07:24:15 +02:00

Fix the activation or not of advanced buttons in fullscreen controller

This commit is contained in:
Jean-Baptiste Kempf 2008-08-01 14:57:39 -07:00
parent 132030acbb
commit 175d1beb96
2 changed files with 4 additions and 1 deletions

View File

@ -889,7 +889,7 @@ void ControlsWidget::enableVideo( bool enable )
void ControlsWidget::toggleAdvanced()
{
if( !VISIBLE( advControls ) )
if( advControls && !b_advancedVisible )
{
advControls->show();
b_advancedVisible = true;
@ -961,6 +961,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i,
#ifdef WIN32TRICK
setWindowOpacity( 0.0 );
fscHidden = true;
adjustSize();
show();
#endif
@ -977,6 +978,7 @@ FullscreenControllerWidget::~FullscreenControllerWidget()
*/
void FullscreenControllerWidget::showFSC()
{
adjustSize();
#ifdef WIN32TRICK
// after quiting and going to fs, we need to call show()
if( isHidden() )

View File

@ -832,6 +832,7 @@ void MainInterface::doComponentsUpdate()
void MainInterface::toggleAdvanced()
{
controls->toggleAdvanced();
fullscreenControls->toggleAdvanced();
}
/* Get the visibility status of the controls (hidden or not, advanced or not) */