mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 06:32:30 +02:00
modules/custom: Support Multi-Line JSON when interval is set
This commit is contained in:
@ -231,11 +231,8 @@ void waybar::modules::Custom::parseOutputRaw() {
|
||||
}
|
||||
|
||||
void waybar::modules::Custom::parseOutputJson() {
|
||||
std::istringstream output(output_.out);
|
||||
std::string line;
|
||||
getline(output, line);
|
||||
class_.clear();
|
||||
auto parsed = parser_.parse(line);
|
||||
auto parsed = parser_.parse(output_.out);
|
||||
|
||||
// Preserve order so that first "{}" is resolved to "text" for backwards compatability
|
||||
if (parsed["text"].isString()) {
|
||||
|
Reference in New Issue
Block a user