1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-14 13:01:53 +02:00

[whatsnew] Show What's new on first run with 0.8

This commit is contained in:
Uwe L. Korn 2014-07-11 20:54:46 +01:00
parent 550f77207e
commit 89ba34b9fd

View File

@ -46,6 +46,7 @@
#include "PlaylistEntry.h"
#include "../../viewpages/dashboard/Dashboard.h"
#include "../../viewpages/whatsnew_0_8/WhatsNew_0_8.h"
#include <QAction>
#include <QApplication>
@ -152,7 +153,13 @@ 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() ) {
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 );
}
}