Skip to content

Commit

Permalink
Add fix for centre button back into inspector when display item selected
Browse files Browse the repository at this point in the history
  • Loading branch information
KRLango committed Nov 22, 2024
1 parent 2603838 commit c4fb9fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nion/swift/Inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -3184,7 +3184,7 @@ def __create_ring_shape_and_pos(self) -> Declarative.UIDescriptionResult:
)

def _move_to_center_clicked(self, widget: typing.Any) -> None:
action_context = self.__document_controller._get_action_context()
action_context = self.__document_controller._get_action_context_for_display_items([self.__display_item], None, graphics=[self.__graphic])
self.__document_controller.perform_action_in_context("display_panel.center_graphics", action_context)

def __create_position_and_shape_ui(self) -> Declarative.UIDescriptionResult:
Expand Down

0 comments on commit c4fb9fa

Please sign in to comment.