@@ -1925,14 +1925,14 @@ def __edit_settings(self) -> None:
19251925 changed_options = edit_settings (self )
19261926 sigima_options .fft_shift_enabled .set (Conf .proc .fft_shift_enabled .get ())
19271927 sigima_options .auto_normalize_kernel .set (Conf .proc .auto_normalize_kernel .get ())
1928+ refresh_signal_panel = refresh_image_panel = False
19281929 for option in changed_options :
19291930 if option in (
19301931 "max_shapes_to_draw" ,
19311932 "max_cells_in_label" ,
19321933 "max_cols_in_label" ,
19331934 ):
1934- for panel in (self .signalpanel , self .imagepanel ):
1935- panel .manual_refresh ()
1935+ refresh_signal_panel = refresh_image_panel = True
19361936 if option == "show_result_label" :
19371937 for panel in (self .signalpanel , self .imagepanel ):
19381938 panel .show_label_checkbox .setChecked (
@@ -1948,7 +1948,7 @@ def __edit_settings(self) -> None:
19481948 if isinstance (widget , DockablePlotWidget ):
19491949 widget .update_toolbar_position ()
19501950 if option .startswith ("sig_autodownsampling" ):
1951- self . signalpanel . refresh_plot ( "existing" , True , False )
1951+ refresh_signal_panel = True
19521952 if option == "sig_autoscale_margin_percent" :
19531953 # Update signal plot widget autoscale margin
19541954 sig_margin = Conf .view .sig_autoscale_margin_percent .get ()
@@ -1986,6 +1986,12 @@ def __edit_settings(self) -> None:
19861986 )
19871987 if answer == QW .QMessageBox .Yes :
19881988 self .imagepanel .update_metadata_view_settings ()
1989+ if option == "ima_aspect_ratio_1_1" :
1990+ refresh_image_panel = True
1991+ if refresh_signal_panel :
1992+ self .signalpanel .manual_refresh ()
1993+ if refresh_image_panel :
1994+ self .imagepanel .manual_refresh ()
19891995
19901996 def __show_logviewer (self ) -> None :
19911997 """Show error logs"""
0 commit comments