Skip to content

Commit 009f1fb

Browse files
committed
settings dialog: reset button: fix config change
This was missed in 0b7e988 (slgobinath#730).
1 parent a255ea6 commit 009f1fb

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)