mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-02-26 12:53:41 +01:00
DRY: Use GAM logic instead of build an own one in MPRIS
This commit is contained in:
parent
832305008b
commit
5884db1e3b
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user