Format
This commit is contained in:
parent
1533b2d3a1
commit
3c39ea192b
4 changed files with 10 additions and 10 deletions
|
|
@ -478,4 +478,4 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -215,4 +215,4 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,8 @@ Singleton {
|
||||||
property var currentPlayer: null
|
property var currentPlayer: null
|
||||||
property real currentPosition: 0
|
property real currentPosition: 0
|
||||||
property int selectedPlayerIndex: 0
|
property int selectedPlayerIndex: 0
|
||||||
property bool isPlaying: currentPlayer ? (currentPlayer.playbackState === MprisPlaybackState.Playing || currentPlayer.isPlaying) : false
|
property bool isPlaying: currentPlayer ? (currentPlayer.playbackState === MprisPlaybackState.Playing
|
||||||
|
|| currentPlayer.isPlaying) : false
|
||||||
property string trackTitle: currentPlayer ? (currentPlayer.trackTitle || "") : ""
|
property string trackTitle: currentPlayer ? (currentPlayer.trackTitle || "") : ""
|
||||||
property string trackArtist: currentPlayer ? (currentPlayer.trackArtist || "") : ""
|
property string trackArtist: currentPlayer ? (currentPlayer.trackArtist || "") : ""
|
||||||
property string trackAlbum: currentPlayer ? (currentPlayer.trackAlbum || "") : ""
|
property string trackAlbum: currentPlayer ? (currentPlayer.trackAlbum || "") : ""
|
||||||
|
|
@ -38,7 +39,8 @@ Singleton {
|
||||||
let controllablePlayers = []
|
let controllablePlayers = []
|
||||||
|
|
||||||
// Apply blacklist and controllable filter
|
// Apply blacklist and controllable filter
|
||||||
const blacklist = (Settings.data.audio && Settings.data.audio.mprisBlacklist) ? Settings.data.audio.mprisBlacklist : []
|
const blacklist = (Settings.data.audio
|
||||||
|
&& Settings.data.audio.mprisBlacklist) ? Settings.data.audio.mprisBlacklist : []
|
||||||
for (var i = 0; i < allPlayers.length; i++) {
|
for (var i = 0; i < allPlayers.length; i++) {
|
||||||
let player = allPlayers[i]
|
let player = allPlayers[i]
|
||||||
if (!player)
|
if (!player)
|
||||||
|
|
@ -48,9 +50,10 @@ Singleton {
|
||||||
const desktop = String(player.desktopEntry || "")
|
const desktop = String(player.desktopEntry || "")
|
||||||
const idKey = identity.toLowerCase()
|
const idKey = identity.toLowerCase()
|
||||||
const match = blacklist.find(b => {
|
const match = blacklist.find(b => {
|
||||||
const s = String(b || "").toLowerCase()
|
const s = String(b || "").toLowerCase()
|
||||||
return s && (idKey.includes(s) || busName.toLowerCase().includes(s) || desktop.toLowerCase().includes(s))
|
return s && (idKey.includes(s) || busName.toLowerCase().includes(s)
|
||||||
})
|
|| desktop.toLowerCase().includes(s))
|
||||||
|
})
|
||||||
if (match)
|
if (match)
|
||||||
continue
|
continue
|
||||||
if (player.canControl)
|
if (player.canControl)
|
||||||
|
|
|
||||||
|
|
@ -28,9 +28,6 @@ Rectangle {
|
||||||
signal exited
|
signal exited
|
||||||
signal clicked
|
signal clicked
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
implicitWidth: size
|
implicitWidth: size
|
||||||
implicitHeight: size
|
implicitHeight: size
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue