mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-05-02 06:10:25 +02:00
Always show Dashboard page first, so closing the WhatsNew page goes back there as a default.
This commit is contained in:
parent
094b6436bc
commit
7535b8f9e7
@ -154,16 +154,14 @@ SourceTreeView::SourceTreeView( QWidget* parent )
|
||||
addAction( renamePlaylistAction );
|
||||
connect( renamePlaylistAction, SIGNAL( triggered() ), SLOT( renamePlaylist() ) );
|
||||
|
||||
ViewManager::instance()->showDynamicPage( Tomahawk::Widgets::DASHBOARD_VIEWPAGE_NAME );
|
||||
|
||||
// On the first run with 0.8 show the What's New page.
|
||||
if ( !TomahawkSettings::instance()->value( "whatsnew/shownfor08", false).toBool() )
|
||||
if ( !TomahawkSettings::instance()->value( "whatsnew/shownfor08", false ).toBool() )
|
||||
{
|
||||
ViewManager::instance()->showDynamicPage( Tomahawk::Widgets::WHATSNEW_0_8_VIEWPAGE_NAME );
|
||||
TomahawkSettings::instance()->setValue( "whatsnew/shownfor08", true );
|
||||
}
|
||||
else
|
||||
{
|
||||
ViewManager::instance()->showDynamicPage( Tomahawk::Widgets::DASHBOARD_VIEWPAGE_NAME );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user