mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
refactor: call parent update
This commit is contained in:
@ -29,7 +29,10 @@ AModule::~AModule() {
|
||||
}
|
||||
|
||||
auto AModule::update() -> void {
|
||||
pid_.push_back(util::command::forkExec(config_["on-update"].asString()));
|
||||
// Run user-provided update handler if configured
|
||||
if (config_["on-update"].isString()) {
|
||||
pid_.push_back(util::command::forkExec(config_["on-update"].asString()));
|
||||
}
|
||||
}
|
||||
|
||||
bool AModule::handleToggle(GdkEventButton* const& e) {
|
||||
|
Reference in New Issue
Block a user