Fix linter

pull/1730/head
herlev 2022-10-19 13:29:05 +02:00
parent 54e04b5a30
commit e660a3634d
1 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,4 @@
#include "modules/sway/window.hpp"
#include "util/rewrite_title.hpp"
#include <gdkmm/pixbuf.h>
#include <glibmm/fileutils.h>
@ -13,6 +12,8 @@
#include <regex>
#include <string>
#include "util/rewrite_title.hpp"
namespace waybar::modules::sway {
Window::Window(const std::string& id, const Bar& bar, const Json::Value& config)
@ -176,8 +177,9 @@ auto Window::update() -> void {
bar_.window.get_style_context()->remove_class("solo");
bar_.window.get_style_context()->remove_class("empty");
}
label_.set_markup(fmt::format(format_, fmt::arg("title", waybar::util::rewriteTitle(window_, config_["rewrite"])),
fmt::arg("app_id", app_id_), fmt::arg("shell", shell_)));
label_.set_markup(fmt::format(
format_, fmt::arg("title", waybar::util::rewriteTitle(window_, config_["rewrite"])),
fmt::arg("app_id", app_id_), fmt::arg("shell", shell_)));
if (tooltipEnabled()) {
label_.set_tooltip_text(window_);
}