Fix button action handling to consistently use the active player

This commit is contained in:
BlueManCZ
2026-02-11 12:09:20 +01:00
parent 0a50e82d0d
commit a871d90161
2 changed files with 37 additions and 32 deletions

View File

@ -78,6 +78,7 @@ class Mpris : public ALabel {
PlayerctlPlayerManager* manager;
PlayerctlPlayer* player;
PlayerctlPlayer* last_active_player_ = nullptr;
std::string lastStatus;
std::string lastPlayer;