mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +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
|
||||
MprisPlugin::OpenUri( const QString& Uri )
|
||||
MprisPlugin::OpenUri( const QString& uri )
|
||||
{
|
||||
if ( Uri.contains( "tomahawk://" ) )
|
||||
GlobalActionManager::instance()->parseTomahawkLink( Uri );
|
||||
else if ( Uri.contains( "spotify:" ) )
|
||||
GlobalActionManager::instance()->openSpotifyLink( Uri );
|
||||
GlobalActionManager::instance()->openUrl( uri );
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user