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 {
|
try {
|
||||||
auto payload = parser_.parse(res.payload);
|
auto payload = parser_.parse(res.payload);
|
||||||
if (payload["change"] != "default") {
|
if (payload["change"] != "default") {
|
||||||
mode_ = payload["change"].asString();
|
mode_ = Glib::Markup::escape_text(payload["change"].asString());
|
||||||
} else {
|
} else {
|
||||||
mode_.clear();
|
mode_.clear();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue