Commit 85d667d7 authored by Clément Stenac's avatar Clément Stenac

Fix disc buttons

parent 40483857
...@@ -216,7 +216,7 @@ void Timer::Notify() ...@@ -216,7 +216,7 @@ void Timer::Notify()
var_Get( p_input, "position", &pos ); var_Get( p_input, "position", &pos );
var_Change( p_input, "title", VLC_VAR_CHOICESCOUNT, &val, NULL ); 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; vlc_value_t val;
...@@ -258,6 +258,10 @@ void Timer::Notify() ...@@ -258,6 +258,10 @@ void Timer::Notify()
p_main_interface->ShowDiscFrame(); 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 && if( pos.f_float > 0.0 &&
......
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