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