Skip to content

Commit

Permalink
default delay
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencohn committed Jan 21, 2024
1 parent b6f53f0 commit b0e9599
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion OneMore/Commands/Settings/HashtagSheet .cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ public override bool CollectSettings()
? settings.Add("disabled", true) || updated
: settings.Remove("disabled") || updated;

updated = settings.Add("delay", (int)delayBox.Value) || updated;
updated = delayBox.Value > 0
? settings.Add("delay", (int)delayBox.Value) || updated
: settings.Remove("delay") || updated;

if (updated)
{
Expand Down

0 comments on commit b0e9599

Please sign in to comment.