Merge pull request #2778 from an-prata/master
fix `restart-interval` being ignored while `signal` is defined (#2650)
This commit is contained in:
commit
99d26e44ee
|
@ -14,7 +14,8 @@ waybar::modules::Custom::Custom(const std::string& name, const std::string& id,
|
|||
fp_(nullptr),
|
||||
pid_(-1) {
|
||||
dp.emit();
|
||||
if (!config_["signal"].empty() && config_["interval"].empty()) {
|
||||
if (!config_["signal"].empty() && config_["interval"].empty() &&
|
||||
config_["restart-interval"].empty()) {
|
||||
waitingWorker();
|
||||
} else if (interval_.count() > 0) {
|
||||
delayWorker();
|
||||
|
|
Loading…
Reference in New Issue