fix(hyprland/window): use 2-space indentation for fallback block (clang-format)
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#include "modules/hyprland/window.hpp"
|
#include "modules/hyprland/window.hpp"
|
||||||
|
|
||||||
|
#include <fmt/format.h>
|
||||||
#include <glibmm/fileutils.h>
|
#include <glibmm/fileutils.h>
|
||||||
#include <glibmm/keyfile.h>
|
#include <glibmm/keyfile.h>
|
||||||
#include <glibmm/miscutils.h>
|
#include <glibmm/miscutils.h>
|
||||||
@@ -13,8 +14,6 @@
|
|||||||
#include "util/rewrite_string.hpp"
|
#include "util/rewrite_string.hpp"
|
||||||
#include "util/sanitize_str.hpp"
|
#include "util/sanitize_str.hpp"
|
||||||
|
|
||||||
#include <fmt/format.h>
|
|
||||||
|
|
||||||
namespace waybar::modules::hyprland {
|
namespace waybar::modules::hyprland {
|
||||||
|
|
||||||
std::shared_mutex windowIpcSmtx;
|
std::shared_mutex windowIpcSmtx;
|
||||||
@@ -56,11 +55,11 @@ auto Window::update() -> void {
|
|||||||
if (!format_.empty()) {
|
if (!format_.empty()) {
|
||||||
label_.show();
|
label_.show();
|
||||||
|
|
||||||
// If the focused window name is empty and fallback is configured, use fallback text
|
// If the focused window name is empty and fallback is configured, use fallback text
|
||||||
std::string displayTitle = windowName;
|
std::string displayTitle = windowName;
|
||||||
if (displayTitle.empty() && config_["fallback"].isString()) {
|
if (displayTitle.empty() && config_["fallback"].isString()) {
|
||||||
displayTitle = config_["fallback"].asString();
|
displayTitle = config_["fallback"].asString();
|
||||||
}
|
}
|
||||||
|
|
||||||
label_text = waybar::util::rewriteString(
|
label_text = waybar::util::rewriteString(
|
||||||
fmt::format(fmt::runtime(format_), fmt::arg("title", displayTitle),
|
fmt::format(fmt::runtime(format_), fmt::arg("title", displayTitle),
|
||||||
|
|||||||
Reference in New Issue
Block a user