Merge pull request #2778 from an-prata/master

fix `restart-interval` being ignored while `signal` is defined (#2650)
This commit is contained in:
Alexis Rouillard 2023-12-29 10:59:13 +01:00 committed by GitHub
commit 99d26e44ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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();