mpris: hide on current player vanished
This commit is contained in:
parent
0773786766
commit
e8d91eb14b
|
@ -433,6 +433,7 @@ auto Mpris::onPlayerNameVanished(PlayerctlPlayerManager* manager, PlayerctlPlaye
|
||||||
|
|
||||||
if (std::string(player_name->name) == mpris->player_) {
|
if (std::string(player_name->name) == mpris->player_) {
|
||||||
mpris->player = nullptr;
|
mpris->player = nullptr;
|
||||||
|
mpris->event_box_.set_visible(false);
|
||||||
mpris->dp.emit();
|
mpris->dp.emit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue