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