From 85d667d783d0bc757665f504acdbaf01a969b751 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Cl=C3=A9ment=20Stenac?= Date: Sat, 23 Apr 2005 22:30:11 +0000 Subject: [PATCH] Fix disc buttons --- modules/gui/wxwindows/timer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/gui/wxwindows/timer.cpp b/modules/gui/wxwindows/timer.cpp index 636fc7ca3d..4d3c5a2d6a 100644 --- a/modules/gui/wxwindows/timer.cpp +++ b/modules/gui/wxwindows/timer.cpp @@ -216,7 +216,7 @@ void Timer::Notify() var_Get( p_input, "position", &pos ); var_Change( p_input, "title", VLC_VAR_CHOICESCOUNT, &val, NULL ); - if( val.i_int > 0 && !p_main_interface->disc_menu_button->IsShown() ) + if( val.i_int > 0 && !p_main_interface->disc_frame->IsShown() ) { vlc_value_t val; @@ -258,6 +258,10 @@ void Timer::Notify() p_main_interface->ShowDiscFrame(); } + else if( val.i_int == 0 && p_main_interface->disc_frame->IsShown() ) + { + p_main_interface->HideDiscFrame(); + } if( pos.f_float > 0.0 && -- 2.39.2