mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
DRY: Use GAM logic instead of build an own one in MPRIS
This commit is contained in:
@@ -364,12 +364,9 @@ MprisPlugin::Next()
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
MprisPlugin::OpenUri( const QString& Uri )
|
MprisPlugin::OpenUri( const QString& uri )
|
||||||
{
|
{
|
||||||
if ( Uri.contains( "tomahawk://" ) )
|
GlobalActionManager::instance()->openUrl( uri );
|
||||||
GlobalActionManager::instance()->parseTomahawkLink( Uri );
|
|
||||||
else if ( Uri.contains( "spotify:" ) )
|
|
||||||
GlobalActionManager::instance()->openSpotifyLink( Uri );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user