Skip to content

Commit bec7a24

Browse files
authored
Merge pull request slgobinath#742 from deltragon/reset-fix-config
settings dialog: reset button: fix config change
2 parents a255ea6 + 009f1fb commit bec7a24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

safeeyes/ui/settings_dialog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,11 @@ def __create_break_item(self, break_config, is_short):
184184
def on_reset_menu_clicked(self, button):
185185
self.popover.hide()
186186

187-
def __confirmation_dialog_response(dialog, result):
187+
def __confirmation_dialog_response(dialog, result) -> None:
188188
response_id = dialog.choose_finish(result)
189189
if response_id == 1:
190190
utility.reset_config()
191-
self.config = Config()
191+
self.config = Config.load()
192192
# Remove breaks from the container
193193
self.__clear_children(self.box_short_breaks)
194194
self.__clear_children(self.box_long_breaks)

0 commit comments

Comments
 (0)