Skip to content
Snippets Groups Projects
Commit a262e727 authored by Yves Gouriou's avatar Yves Gouriou
Browse files

Modification de la structure d'initialisation de

la structure root
parent 24c4f28e
No related branches found
No related tags found
No related merge requests found
......@@ -176,3 +176,13 @@ tsg.REFERENCE_DATE_TIME = REFERENCE_DATE_TIME;
% Save tsg structure
% ------------------
setappdata( hMainFig, 'tsg_data', tsg);
% init root structure to default values
% -------------------------------------
root.preference.autoload = 'off';
root.version = 'unknown';
root.preference.parameter = 'SSPS';
% Save root structure in MainFig
% ------------------------------
set( 0, 'userdata', root );
......@@ -48,20 +48,11 @@ switch fid
% disactive the preference mode (for test or bug)
% -----------------------------------------------
case -2
% init root structure to default values
% -------------------------------------
root.preference.autoload = 'off';
root.version = VERSION;
% call default tsg_initialisation
% -------------------------------
tsg_initialisation(hTsgGUI);
% save root in root object for next use
% -------------------------------------
set(0, 'userdata', root);
return;
% file exist and is open, fid > 2
......@@ -74,7 +65,7 @@ switch fid
% Initialize loading preference file waitbar
% ------------------------------------------
wb = waitbar(0, 'Loading préference file. Please wait...');
wb = waitbar(0, 'Loading preference file. Please wait...');
% display waitbar
% ---------------
......@@ -164,11 +155,6 @@ set(0, 'userdata', root);
% -------------------------------------
tsg = getappdata( hTsgGUI, 'tsg_data');
% init root structure to default values
% -------------------------------------
root.preference.autoload = 'off';
root.version = VERSION;
% save root and tsg to 'prefdir.mat' file
% ---------------------------------------
save(config_file, 'root', 'tsg');
......
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