mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
switch to created auto playlist / station on creation
This commit is contained in:
@@ -329,6 +329,7 @@ TomahawkWindow::createAutomaticPlaylist()
|
|||||||
dynplaylist_ptr playlist = DynamicPlaylist::create( author, id, name, info, creator, false );
|
dynplaylist_ptr playlist = DynamicPlaylist::create( author, id, name, info, creator, false );
|
||||||
playlist->setMode( Static );
|
playlist->setMode( Static );
|
||||||
playlist->createNewRevision( uuid(), playlist->currentrevision(), playlist->type(), playlist->generator()->controls(), playlist->entries() );
|
playlist->createNewRevision( uuid(), playlist->currentrevision(), playlist->type(), playlist->generator()->controls(), playlist->entries() );
|
||||||
|
PlaylistManager::instance()->show( playlist );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -347,6 +348,7 @@ TomahawkWindow::createStation()
|
|||||||
dynplaylist_ptr playlist = DynamicPlaylist::create( author, id, name, info, creator, false );
|
dynplaylist_ptr playlist = DynamicPlaylist::create( author, id, name, info, creator, false );
|
||||||
playlist->setMode( OnDemand );
|
playlist->setMode( OnDemand );
|
||||||
playlist->createNewRevision( uuid(), playlist->currentrevision(), playlist->type(), playlist->generator()->controls() );
|
playlist->createNewRevision( uuid(), playlist->currentrevision(), playlist->type(), playlist->generator()->controls() );
|
||||||
|
PlaylistManager::instance()->show( playlist );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user