Commit 776e49e2 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: updateSystrayTooltipStatus simplification

parent 42383d06
...@@ -961,23 +961,15 @@ void MainInterface::updateSystrayTooltipStatus( int i_status ) ...@@ -961,23 +961,15 @@ void MainInterface::updateSystrayTooltipStatus( int i_status )
{ {
switch( i_status ) switch( i_status )
{ {
case 0: case PLAYING_S:
case END_S: sysTray->setToolTip( input_name );
{ break;
sysTray->setToolTip( qtr( "VLC media player" ) ); case PAUSE_S:
break; sysTray->setToolTip( input_name + " - " + qtr( "Paused") );
} break;
case PLAYING_S: default:
{ sysTray->setToolTip( qtr( "VLC media player" ) );
sysTray->setToolTip( input_name ); break;
break;
}
case PAUSE_S:
{
sysTray->setToolTip( input_name + " - "
+ qtr( "Paused") );
break;
}
} }
QVLCMenu::updateSystrayMenu( this, p_intf ); QVLCMenu::updateSystrayMenu( this, p_intf );
} }
......
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