mpris: hide on current player vanished

This commit is contained in:
giskard 2024-05-14 14:39:30 +08:00
parent 0773786766
commit e8d91eb14b
1 changed files with 1 additions and 0 deletions

View File

@ -433,6 +433,7 @@ auto Mpris::onPlayerNameVanished(PlayerctlPlayerManager* manager, PlayerctlPlaye
if (std::string(player_name->name) == mpris->player_) {
mpris->player = nullptr;
mpris->event_box_.set_visible(false);
mpris->dp.emit();
}
}