Commit c38e274b authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Fix MainInterace initial sizing

Close #3551
(cherry picked from commit fbea59ebe7229dda308db83e10e5d56559b15585)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent cdf5d257
...@@ -233,16 +233,16 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf ) ...@@ -233,16 +233,16 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
/* Register callback for the intf-popupmenu variable */ /* Register callback for the intf-popupmenu variable */
var_AddCallback( p_intf->p_libvlc, "intf-popupmenu", PopupMenuCB, p_intf ); var_AddCallback( p_intf->p_libvlc, "intf-popupmenu", PopupMenuCB, p_intf );
/**** FINAL SIZING and placement of interface */
settings->beginGroup( "MainWindow" );
/* Playlist */ /* Playlist */
int i_plVis = settings->value( "playlist-visible", false ).toBool(); int i_plVis = settings->value( "MainWindow/playlist-visible", false ).toBool();
settings->endGroup();
if( i_plVis ) togglePlaylist(); if( i_plVis ) togglePlaylist();
/**** FINAL SIZING and placement of interface */
settings->beginGroup( "MainWindow" );
QVLCTools::restoreWidgetPosition( settings, this, QSize(400, 100) ); QVLCTools::restoreWidgetPosition( settings, this, QSize(400, 100) );
settings->endGroup();
/* Final sizing and showing */ /* Final sizing and showing */
setVisible( !b_hideAfterCreation ); setVisible( !b_hideAfterCreation );
......
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