mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
refactor: lint
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
#include "modules/sway/mode.hpp"
|
||||
|
||||
#include <spdlog/spdlog.h>
|
||||
|
||||
namespace waybar::modules::sway {
|
||||
@ -21,7 +22,7 @@ Mode::Mode(const std::string& id, const Json::Value& config)
|
||||
void Mode::onEvent(const struct Ipc::ipc_response& res) {
|
||||
try {
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
auto payload = parser_.parse(res.payload);
|
||||
auto payload = parser_.parse(res.payload);
|
||||
if (payload["change"] != "default") {
|
||||
if (payload["pango_markup"].asBool()) {
|
||||
mode_ = payload["change"].asString();
|
||||
|
Reference in New Issue
Block a user