Skip to content

Commit de600ea

Browse files
committed
fix new configuration not always working
1 parent b5f364d commit de600ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/controller_main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def _measurement_callback(self, timestamp, message_type, identifier, value):
172172

173173
def _on_new_configuration(self, event):
174174
btn = ControllerConfiguration.new_config(self._main_view, self._configuration, self._logger)
175-
if btn in (wx.ID_YES, wx.ID_NO):
175+
if btn != wx.ID_CANCEL:
176176
self._configuration = Configuration()
177177
self._update_view_from_configuration()
178178
event.Skip()

0 commit comments

Comments
 (0)