Skip to content

Commit

Permalink
Merge pull request #2778 from an-prata/master
Browse files Browse the repository at this point in the history
fix `restart-interval` being ignored while `signal` is defined (#2650)
  • Loading branch information
Alexays authored Dec 29, 2023
2 parents 41ebdc3 + 19bf4d0 commit 99d26e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/custom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 99d26e4

Please sign in to comment.