mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
[whatsnew] Show What's new on first run with 0.8
This commit is contained in:
@@ -46,6 +46,7 @@
|
|||||||
#include "PlaylistEntry.h"
|
#include "PlaylistEntry.h"
|
||||||
|
|
||||||
#include "../../viewpages/dashboard/Dashboard.h"
|
#include "../../viewpages/dashboard/Dashboard.h"
|
||||||
|
#include "../../viewpages/whatsnew_0_8/WhatsNew_0_8.h"
|
||||||
|
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
@@ -152,7 +153,13 @@ 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.
|
||||||
|
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 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user