If the menu item says hide, really always hide.
QVLCMenu::updateSystrayMenu( this, p_intf );
}
+void MainInterface::showUpdateSystrayMenu()
+{
+ if( isHidden() )
+ show();
+ if( isMinimized() )
+ showNormal();
+ activateWindow();
+
+ QVLCMenu::updateSystrayMenu( this, p_intf );
+}
+
+void MainInterface::hideUpdateSystrayMenu()
+{
+ hide();
+ QVLCMenu::updateSystrayMenu( this, p_intf );
+}
+
void MainInterface::handleSystrayClick(
QSystemTrayIcon::ActivationReason reason )
{
void togglePlaylist();
#ifndef HAVE_MAEMO
void toggleUpdateSystrayMenu();
+ void showUpdateSystrayMenu();
+ void hideUpdateSystrayMenu();
#endif
void toggleAdvancedButtons();
void toggleInterfaceFullScreen();
{
sysMenu->addAction( QIcon( ":/logo/vlc16.png" ),
qtr( "Hide VLC media player in taskbar" ), mi,
- SLOT( toggleUpdateSystrayMenu() ) );
+ SLOT( hideUpdateSystrayMenu() ) );
}
else
{
sysMenu->addAction( QIcon( ":/logo/vlc16.png" ),
qtr( "Show VLC media player" ), mi,
- SLOT( toggleUpdateSystrayMenu() ) );
+ SLOT( showUpdateSystrayMenu() ) );
}
sysMenu->addSeparator();
#endif