Skip to content

Comments

fix: Allow empty values in DurationController to disable event notifications#2154

Open
Si6gma wants to merge 1 commit intoSkyblockerMod:masterfrom
Si6gma:fix-duration-controller-empty-values
Open

fix: Allow empty values in DurationController to disable event notifications#2154
Si6gma wants to merge 1 commit intoSkyblockerMod:masterfrom
Si6gma:fix-duration-controller-empty-values

Conversation

@Si6gma
Copy link

@Si6gma Si6gma commented Feb 18, 2026

  • Modify toString() to return empty string for duration <= 0
  • Modify isValid() to accept blank strings as valid input
  • This allows users to clear text boxes to disable notifications as documented in the tooltip

Fixes #2148

…cations

- Modify toString() to return empty string for duration <= 0
- Modify isValid() to accept blank strings as valid input
- This allows users to clear text boxes to disable notifications
  as documented in the tooltip

Fixes issue where emptying the notification time fields would
fill them with 'Now' instead of disabling notifications
@LifeIsAParadox LifeIsAParadox added the reviews needed This PR needs reviews label Feb 18, 2026
@Si6gma Si6gma changed the title fix #2148: Allow empty values in DurationController to disable event notifications fix: Allow empty values in DurationController to disable event notifications Feb 18, 2026
@AzureAaron AzureAaron added the bug Something isn't working label Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working reviews needed This PR needs reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to empty list settings, items are replaced with a default instead.

3 participants