mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-15 23:42:36 +02:00
fix: init optional to null
This commit is contained in:
@@ -240,6 +240,10 @@ auto Mpris::getPlayerInfo() -> std::optional<PlayerInfo> {
|
||||
.name = player_name,
|
||||
.status = player_playback_status,
|
||||
.status_string = player_status,
|
||||
.artist = std::nullopt,
|
||||
.album = std::nullopt,
|
||||
.title = std::nullopt,
|
||||
.length = std::nullopt,
|
||||
};
|
||||
|
||||
if (auto artist_ = playerctl_player_get_artist(player, &error)) {
|
||||
|
Reference in New Issue
Block a user