|
90 | 90 |
|
91 | 91 | class MainWindow(QObject): |
92 | 92 |
|
93 | | - # Emitted when new images are loaded |
94 | | - new_images_loaded = Signal() |
95 | | - |
96 | 93 | # Emitted when a new mask is added |
97 | 94 | new_mask_added = Signal(str) |
98 | 95 |
|
@@ -273,7 +270,6 @@ def setup_connections(self): |
273 | 270 | self.ui.action_run_fit_grains.triggered.connect( |
274 | 271 | self.on_action_run_fit_grains_triggered) |
275 | 272 | self.ui.action_run_wppf.triggered.connect(self.run_wppf) |
276 | | - self.new_images_loaded.connect(self.images_loaded) |
277 | 273 | self.ui.image_tab_widget.update_needed.connect(self.update_all) |
278 | 274 | self.ui.image_tab_widget.new_mouse_position.connect( |
279 | 275 | self.new_mouse_position) |
@@ -340,7 +336,7 @@ def setup_connections(self): |
340 | 336 | self.on_physics_package_modified) |
341 | 337 |
|
342 | 338 | ImageLoadManager().update_needed.connect(self.update_all) |
343 | | - ImageLoadManager().new_images_loaded.connect(self.new_images_loaded) |
| 339 | + ImageLoadManager().new_images_loaded.connect(self.images_loaded) |
344 | 340 | ImageLoadManager().images_transformed.connect(self.update_config_gui) |
345 | 341 | ImageLoadManager().live_update_status.connect(self.set_live_update) |
346 | 342 | ImageLoadManager().state_updated.connect( |
@@ -529,7 +525,8 @@ def load_dummy_images(self): |
529 | 525 | ImageFileManager().load_dummy_images() |
530 | 526 | self.update_all(clear_canvases=True) |
531 | 527 | self.ui.action_transform_detectors.setEnabled(False) |
532 | | - self.new_images_loaded.emit() |
| 528 | + # Manually indicate that new images were loaded |
| 529 | + ImageLoadManager().new_images_loaded.emit() |
533 | 530 |
|
534 | 531 | def open_image_file(self): |
535 | 532 | images_dir = HexrdConfig().images_dir |
|
0 commit comments