untested hm module
This commit is contained in:
parent
ae824fcb47
commit
75fbaf3786
6 changed files with 101 additions and 19 deletions
|
@ -15,9 +15,9 @@ pub fn is_active(player: &Player) -> bool {
|
|||
}
|
||||
|
||||
pub fn is_whitelisted(config: &Config, player: &Player) -> bool {
|
||||
if Some(player.bus_name()) == config.player_bus.as_deref() {
|
||||
if Some(player.bus_name()) == config.global.player_bus.as_deref() {
|
||||
return true
|
||||
} else if config.player_bus.is_none() {
|
||||
} else if config.global.player_bus.is_none() {
|
||||
return player.bus_name().starts_with(MPRIS_BUS_PREFIX)
|
||||
} else {
|
||||
return false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue