ui: change diversion editor window title and button label

This commit is contained in:
Vinícius 2020-11-14 16:54:17 -03:00 committed by Peter F. Patel-Schneider
parent ef3d3e5290
commit b548d05cad
2 changed files with 2 additions and 4 deletions

View File

@ -53,8 +53,6 @@ class RuleComponentWrapper(GObject.GObject):
def display_left(self):
if isinstance(self.component, _DIV.Rule):
if self.level == -1:
return _('Diverson rules')
if self.level == 0:
return _('Built-in rules') if not self.editable else _('User-defined rules')
if self.level == 1:
@ -84,7 +82,7 @@ class DiversionDialog:
def __init__(self):
window = Gtk.Window()
window.set_title(_('Diversion settings'))
window.set_title(_('Solaar Rule Editor'))
window.connect('delete-event', self._closing)
vbox = Gtk.VBox()

View File

@ -328,7 +328,7 @@ def _create_window_layout():
_('About') + ' ' + NAME, 'help-about', icon_size=_SMALL_BUTTON_ICON_SIZE, clicked=_show_about_window
)
bottom_buttons_box.add(about_button)
diversion_button = _new_button(_('Diversion rules'), '', icon_size=_SMALL_BUTTON_ICON_SIZE, clicked=_show_diversion_window)
diversion_button = _new_button(_('Rule Editor'), '', icon_size=_SMALL_BUTTON_ICON_SIZE, clicked=_show_diversion_window)
bottom_buttons_box.add(diversion_button)
bottom_buttons_box.set_child_secondary(diversion_button, True)