mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Rename function name
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
#include "modules/hyprland/backend.hpp"
|
||||
#include "util/command.hpp"
|
||||
#include "util/json.hpp"
|
||||
#include "util/rewrite_title.hpp"
|
||||
#include "util/rewrite_string.hpp"
|
||||
|
||||
namespace waybar::modules::hyprland {
|
||||
|
||||
@ -41,7 +41,7 @@ auto Window::update() -> void {
|
||||
if (!format_.empty()) {
|
||||
label_.show();
|
||||
label_.set_markup(fmt::format(fmt::runtime(format_),
|
||||
waybar::util::rewriteTitle(lastView, config_["rewrite"])));
|
||||
waybar::util::rewriteString(lastView, config_["rewrite"])));
|
||||
} else {
|
||||
label_.hide();
|
||||
}
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include <regex>
|
||||
#include <string>
|
||||
|
||||
#include "util/rewrite_title.hpp"
|
||||
#include "util/rewrite_string.hpp"
|
||||
|
||||
namespace waybar::modules::sway {
|
||||
|
||||
@ -206,7 +206,7 @@ auto Window::update() -> void {
|
||||
|
||||
label_.set_markup(
|
||||
fmt::format(fmt::runtime(format_),
|
||||
fmt::arg("title", waybar::util::rewriteTitle(window_, config_["rewrite"])),
|
||||
fmt::arg("title", waybar::util::rewriteString(window_, config_["rewrite"])),
|
||||
fmt::arg("app_id", app_id_), fmt::arg("shell", shell_)));
|
||||
if (tooltipEnabled()) {
|
||||
label_.set_tooltip_text(window_);
|
||||
|
Reference in New Issue
Block a user