Skip to content

Commit 6b5bd55

Browse files
committed
small fix
1 parent 2fd8674 commit 6b5bd55

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/navigate/controller/controller.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,12 @@ def update_buffer(self):
313313
self.img_width = img_width
314314
self.img_height = img_height
315315

316+
# virtual microscopes
317+
for microscope_name in self.additional_microscopes:
318+
self.model.destroy_virtual_microscope(microscope_name)
319+
# TODO: destroy the popup window
320+
self.additional_microscopes.pop(microscope_name)
321+
316322
def update_acquire_control(self):
317323
"""Update the acquire control based on the current experiment parameters."""
318324
self.view.acqbar.stop_stage.config(

src/navigate/controller/sub_controllers/microscope_popup_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def confirm_microscope_setting(self):
195195
self.parent_controller.configuration["experiment"]["MicroscopeState"][
196196
"zoom"
197197
] = zoom
198-
self.parent_controller.resolution_value.set(
198+
self.parent_controller.menu_controller.resolution_value.set(
199199
f"{self.primary_microscope} {zoom}"
200200
)
201201

0 commit comments

Comments
 (0)