mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix: init optional to null
This commit is contained in:
parent
20a8039a25
commit
02b3c125a1
@ -240,6 +240,10 @@ auto Mpris::getPlayerInfo() -> std::optional<PlayerInfo> {
|
|||||||
.name = player_name,
|
.name = player_name,
|
||||||
.status = player_playback_status,
|
.status = player_playback_status,
|
||||||
.status_string = player_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)) {
|
if (auto artist_ = playerctl_player_get_artist(player, &error)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user