Commit 68c0d25f authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
parent d2f9a597
......@@ -84,6 +84,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
cryptedLabel = NULL;
controls = NULL;
inputC = NULL;
b_shouldHide = false;
bgWasVisible = false;
i_bg_height = 0;
......@@ -265,7 +266,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
/* Final sizing and showing */
setMinimumWidth( __MAX( controls->sizeHint().width(),
menuBar()->sizeHint().width() ) );
show();
setVisible( !b_shouldHide );
/* And switch to minimal view if needed
Must be called after the show() */
......@@ -462,7 +463,7 @@ inline void MainInterface::initSystray()
if( b_systrayAvailable )
{
b_systrayWanted = true;
hide();
b_shouldHide = true;
}
else
msg_Err( p_intf, "cannot start minimized without system tray bar" );
......
......@@ -144,6 +144,7 @@ private:
pl_dock_e i_pl_dock;
bool isDocked() { return ( i_pl_dock != PL_UNDOCKED ); }
int i_bg_height; ///< Save height of bgWidget
bool b_shouldHide;
/* Status Bar */
QLabel *nameLabel;
......
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