From 9737dd0942d798ce8f475b6a1e12cef409590d5c Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 9 Sep 2025 19:12:48 +0200 Subject: [PATCH] tweak names --- changedetectionio/forms.py | 2 +- changedetectionio/widgets/ternary_boolean.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/changedetectionio/forms.py b/changedetectionio/forms.py index ddfad06d9..eec4ade40 100644 --- a/changedetectionio/forms.py +++ b/changedetectionio/forms.py @@ -624,7 +624,7 @@ class processor_text_json_diff_form(commonSettingsForm): # filter_failure_notification_send @todo make ternary filter_failure_notification_send = BooleanField( 'Send a notification when the filter can no longer be found on the page', default=False) - notification_muted = TernaryNoneBooleanField('Notifications', default=None, yes_text="Muted", no_text="On", none_text="System default") + notification_muted = TernaryNoneBooleanField('Notifications', default=None, yes_text="Muted", no_text="On") notification_screenshot = BooleanField('Attach screenshot to notification (where possible)', default=False) conditions_match_logic = RadioField(u'Match', choices=[('ALL', 'Match all of the following'),('ANY', 'Match any of the following')], default='ALL') diff --git a/changedetectionio/widgets/ternary_boolean.py b/changedetectionio/widgets/ternary_boolean.py index 951133768..9403e8ddd 100644 --- a/changedetectionio/widgets/ternary_boolean.py +++ b/changedetectionio/widgets/ternary_boolean.py @@ -16,7 +16,7 @@ class TernaryNoneBooleanWidget: # Get custom text or use defaults yes_text = getattr(field, 'yes_text', 'Yes') no_text = getattr(field, 'no_text', 'No') - none_text = getattr(field, 'none_text', 'Default') + none_text = getattr(field, 'none_text', 'Main settings') # True option checked_true = ' checked' if field.data is True else '' @@ -147,7 +147,7 @@ class TernaryNoneBooleanField(Field): widget = TernaryNoneBooleanWidget() def __init__(self, label=None, validators=None, false_values=None, boolean_mode=False, - yes_text="Yes", no_text="No", none_text="Default", **kwargs): + yes_text="Yes", no_text="No", none_text="Main settings", **kwargs): super(TernaryNoneBooleanField, self).__init__(label, validators, **kwargs) self.boolean_mode = boolean_mode