Skip to content

Commit

Permalink
GUI: Surface panel, resection: Unselect buttons on 'Reset'
Browse files Browse the repository at this point in the history
  • Loading branch information
rcassani committed Oct 16, 2024
1 parent a397551 commit 54b11b1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions toolbox/gui/panel_surface.m
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
jToggleResectLeft = gui_component('toggle', jPanelSurfaceResect, 'br center', 'Left', {Insets(0,0,0,0), Dimension(BUTTON_WIDTH-3, DEFAULT_HEIGHT)}, '', @ButtonResectLeftToggle_Callback);
jToggleResectRight = gui_component('toggle', jPanelSurfaceResect, '', 'Right', {Insets(0,0,0,0), Dimension(BUTTON_WIDTH-3, DEFAULT_HEIGHT)}, '', @ButtonResectRightToggle_Callback);
jToggleResectStruct = gui_component('toggle', jPanelSurfaceResect, '', 'Struct', {Insets(0,0,0,0), Dimension(BUTTON_WIDTH-3, DEFAULT_HEIGHT)}, '', @ButtonResectStruct_Callback);
jButtonResectReset = gui_component('button', jPanelSurfaceResect, '', 'Reset', {Insets(0,0,0,0), Dimension(BUTTON_WIDTH-3, DEFAULT_HEIGHT)}, '', @ButtonResectResetCallback);
jButtonResectReset = gui_component('button', jPanelSurfaceResect, '', 'Reset', {Insets(0,0,0,0), Dimension(BUTTON_WIDTH-3, DEFAULT_HEIGHT)}, '', @ButtonResectResetCallback);
jPanelOptions.add(jPanelSurfaceResect);

% ===== SURFACE LABELS =====
Expand Down Expand Up @@ -285,7 +285,10 @@ function ButtonResectResetCallback(varargin)
jSliderResectX.setValue(0);
jSliderResectY.setValue(0);
jSliderResectZ.setValue(0);

jToggleResectLeft.setSelected(0);
jToggleResectRight.setSelected(0);
jToggleResectStruct.setSelected(0);

% Get handle to current 3DViz figure
hFig = bst_figures('GetCurrentFigure', '3D');
if isempty(hFig)
Expand Down

0 comments on commit 54b11b1

Please sign in to comment.