mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-18 20:04:00 +02:00
Always show Dashboard page first, so closing the WhatsNew page goes back there as a default.
This commit is contained in:
@@ -154,16 +154,14 @@ SourceTreeView::SourceTreeView( QWidget* parent )
|
|||||||
addAction( renamePlaylistAction );
|
addAction( renamePlaylistAction );
|
||||||
connect( renamePlaylistAction, SIGNAL( triggered() ), SLOT( renamePlaylist() ) );
|
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.
|
// 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 );
|
ViewManager::instance()->showDynamicPage( Tomahawk::Widgets::WHATSNEW_0_8_VIEWPAGE_NAME );
|
||||||
TomahawkSettings::instance()->setValue( "whatsnew/shownfor08", true );
|
TomahawkSettings::instance()->setValue( "whatsnew/shownfor08", true );
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
ViewManager::instance()->showDynamicPage( Tomahawk::Widgets::DASHBOARD_VIEWPAGE_NAME );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user