Skip to content
Snippets Groups Projects
Commit 1f5a00a2 authored by Giulia Ghirardini's avatar Giulia Ghirardini Committed by Marco Luigi Gaibotti
Browse files

[fixes][utilities] Added disable checkboxes istance when "update preview" is clicked

parent 93eecd7a
No related branches found
No related tags found
1 merge request!20Important improvements of ESFgui
......@@ -166,6 +166,8 @@ previewButton = uibutton(fig, 'Text', 'Update preview', ...
% Function to update preview
function updatePreview()
checkboxes = findall(flagsPanel.Children, 'Type', 'uicheckbox');
set(checkboxes, 'Enable', 'on');
figHandles = findFigures(fig);
......@@ -281,14 +283,14 @@ previewButton = uibutton(fig, 'Text', 'Update preview', ...
end
% Ensure preview updates on checkbox change
addMarkersBox.ValueChangedFcn = @(src, event) updatePreview();
changeColorsBox.ValueChangedFcn = @(src, event) updatePreview();
gridBox.ValueChangedFcn = @(src, event) updatePreview();
WHratioField.ValueChangedFcn = @(src, event) updatePreview();
changeLineStyleBox.ValueChangedFcn = @(src, event) updatePreview();
satelliteMapColorsBox.ValueChangedFcn = @(src, event) updatePreview();
legendLocationDropDown.ValueChangedFcn = @(src, event) updatePreview();
legendOrientationDropDown.ValueChangedFcn = @(src, event) updatePreview();
% addMarkersBox.ValueChangedFcn = @(src, event) updatePreview();
% changeColorsBox.ValueChangedFcn = @(src, event) updatePreview();
% gridBox.ValueChangedFcn = @(src, event) updatePreview();
% WHratioField.ValueChangedFcn = @(src, event) updatePreview();
% changeLineStyleBox.ValueChangedFcn = @(src, event) updatePreview();
% satelliteMapColorsBox.ValueChangedFcn = @(src, event) updatePreview();
% legendLocationDropDown.ValueChangedFcn = @(src, event) updatePreview();
% legendOrientationDropDown.ValueChangedFcn = @(src, event) updatePreview();
hold(newAx, 'off');
end
......@@ -375,6 +377,9 @@ previewButton = uibutton(fig, 'Text', 'Update preview', ...
'satelliteMapColors', satelliteMapColors, ...
'WHratio', WHratio, ...
'overwriteFigure', overwriteFigure);
checkboxes = findall(flagsPanel.Children, 'Type', 'uicheckbox');
set(checkboxes, 'Enable', 'off');
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment