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:
parent
d41ac411d8
commit
a369aa8632
@ -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() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user