fix: lint

This commit is contained in:
Alex
2025-06-22 09:44:35 +02:00
parent cbdbc492bb
commit 286cff2e3d
3 changed files with 7 additions and 6 deletions

View File

@ -22,8 +22,7 @@ AIconLabel::AIconLabel(const Json::Value &config, const std::string &name, const
if (config_["rotate"].isUInt()) { if (config_["rotate"].isUInt()) {
rot = config["rotate"].asUInt() % 360; rot = config["rotate"].asUInt() % 360;
if ((rot % 90) != 00) if ((rot % 90) != 00) rot = 0;
rot = 0;
rot /= 90; rot /= 90;
} }

View File

@ -500,8 +500,10 @@ auto Mpris::getPlayerInfo() -> std::optional<PlayerInfo> {
// > get the list of players [..] in order of activity // > get the list of players [..] in order of activity
// https://github.com/altdesktop/playerctl/blob/b19a71cb9dba635df68d271bd2b3f6a99336a223/playerctl/playerctl-common.c#L248-L249 // https://github.com/altdesktop/playerctl/blob/b19a71cb9dba635df68d271bd2b3f6a99336a223/playerctl/playerctl-common.c#L248-L249
players = g_list_first(players); players = g_list_first(players);
if (players) player_name = static_cast<PlayerctlPlayerName*>(players->data)->name; if (players)
else return std::nullopt; // no players found, hide the widget player_name = static_cast<PlayerctlPlayerName*>(players->data)->name;
else
return std::nullopt; // no players found, hide the widget
} }
if (std::any_of(ignored_players_.begin(), ignored_players_.end(), if (std::any_of(ignored_players_.begin(), ignored_players_.end(),