Add reset settings to tray icon

This commit is contained in:
Archisman Panigrahi 2024-08-11 08:57:19 -04:00
parent 5280755568
commit 850edf1e59
2 changed files with 20 additions and 1 deletions

View File

@ -557,3 +557,9 @@ msgstr ""
msgid "License:"
msgstr ""
msgid "Reset Settings"
msgstr ""
msgid "Confirm Reset"
msgstr ""

View File

@ -582,11 +582,24 @@ class TrayIcon:
},
{
'id': 7,
'label': _('Reset Settings'),
'enabled': not self.menu_locked,
'children-display': 'submenu',
'children': [
{
'id': 12,
'label': _('Confirm Reset'),
'callback': utility.reset_config,
},
]
},
{
'id': 8,
'label': _('About'),
'callback': self.show_about,
},
{
'id': 8,
'id': 9,
'label': _('Quit'),
'enabled': not self.menu_locked,
'callback': self.quit_safe_eyes,