mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Merge pull request #485 from Ventto/fix-on-click-options
fix: No need to format string with unused 'arg' named argument (#484)
This commit is contained in:
commit
b97ca2ec9b
@ -26,7 +26,6 @@ class AModule : public IModule {
|
||||
|
||||
const Json::Value &config_;
|
||||
Gtk::EventBox event_box_;
|
||||
std::string click_param_;
|
||||
|
||||
virtual bool handleToggle(GdkEventButton *const &ev);
|
||||
virtual bool handleScroll(GdkEventScroll *);
|
||||
|
@ -46,7 +46,7 @@ bool AModule::handleToggle(GdkEventButton* const& e) {
|
||||
format = config_["on-click-forward"].asString();
|
||||
}
|
||||
if (!format.empty()) {
|
||||
pid_.push_back(util::command::forkExec(fmt::format(format, fmt::arg("arg", click_param_))));
|
||||
pid_.push_back(util::command::forkExec(format));
|
||||
}
|
||||
dp.emit();
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user