mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix(mode): escape text
This commit is contained in:
parent
4accdd4524
commit
12a251c3a4
@ -19,7 +19,7 @@ void Mode::onEvent(const struct Ipc::ipc_response& res) {
|
||||
try {
|
||||
auto payload = parser_.parse(res.payload);
|
||||
if (payload["change"] != "default") {
|
||||
mode_ = payload["change"].asString();
|
||||
mode_ = Glib::Markup::escape_text(payload["change"].asString());
|
||||
} else {
|
||||
mode_.clear();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user