Skip to content
Snippets Groups Projects
Commit bc2356f7 authored by leprob001's avatar leprob001
Browse files

The file save menu button is now disabled until something was loaded.

parent 271185ee
No related branches found
No related tags found
No related merge requests found
......@@ -7,9 +7,11 @@ global artoaGui artoaDataInput artoaWorkspace;
%% Update menu buttons
if isfield(artoaDataInput, 'rfb') && ~islogical(artoaDataInput.rfb)
artoaGui.main.menus.edit.Enable = 'on';
artoaGui.main.menus.fileSave.Enable = 'on';
artoaGui.main.menus.track.Enable = 'on';
else
artoaGui.main.menus.edit.Enable = 'off';
artoaGui.main.menus.fileSave.Enable = 'off';
artoaGui.main.menus.track.Enable = 'off';
end
......
......@@ -43,16 +43,21 @@ uimenu( ...
% SAVE
saveHandle = uimenu(artoaGui.main.menus.file, 'Label', 'Save');
artoaGui.main.menus.fileSave = uimenu( ...
artoaGui.main.menus.file, ...
'Label', 'Save', ...
'Enable', 'off' ...
);
uimenu( ...
saveHandle, ...
artoaGui.main.menus.fileSave, ...
'Label', 'RIC file', ...
'Callback', 'artoa.controller.saveRic();', ...
'Enable', 'off' ...
);
uimenu( ...
saveHandle, ...
artoaGui.main.menus.fileSave, ...
'Label', 'Interim file', ...
'Callback', 'artoa.controller.file.saveInterim();' ...
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment