1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-01-17 14:28:24 +01:00

Set a default size of 80% of the available current screen space.

This commit is contained in:
Christian Muehlhaeuser 2014-11-03 19:22:27 +01:00
parent d41ac411d8
commit a369aa8632

View File

@ -25,6 +25,7 @@
#include <QAction>
#include <QCloseEvent>
#include <QDesktopServices>
#include <QDesktopWidget>
#include <QShowEvent>
#include <QHideEvent>
#include <QInputDialog>
@ -198,6 +199,12 @@ TomahawkWindow::loadSettings()
if ( !s->mainWindowGeometry().isEmpty() )
restoreGeometry( s->mainWindowGeometry() );
else
{
// Set default window geometry
resize( QDesktopWidget().availableGeometry( this ).size() * 0.8 );
}
if ( !s->mainWindowState().isEmpty() )
restoreState( s->mainWindowState() );
if ( !s->mainWindowSplitterState().isEmpty() )