Skip to content
Snippets Groups Projects
Verified Commit b0f1deac authored by Houtan Bastani's avatar Houtan Bastani
Browse files

handle tabs correctly on project close

parent a74f762d
No related branches found
No related tags found
No related merge requests found
...@@ -41,17 +41,17 @@ if project_info.modified ...@@ -41,17 +41,17 @@ if project_info.modified
end end
end end
clearvars -global
evalin('global', 'clear M_ options_ oo_ estim_params_ bayestopt_ dataset_ dataset_info estimation_info ys0_ ex0_');
evalin('global', 'clear project_info model_settings');
clear_persistent_variables(fileparts(which('dynare')), true)
%close all opened tabs %close all opened tabs
gui_tabs.close_all(); gui_tabs.close_all();
%disable menu options %disable menu options
gui_set_menus(false); gui_set_menus(false);
clearvars -global
evalin('global', 'clear M_ options_ oo_ estim_params_ bayestopt_ dataset_ dataset_info estimation_info ys0_ ex0_');
evalin('global', 'clear project_info model_settings');
clear_persistent_variables(fileparts(which('dynare')), true)
% remove appdata % remove appdata
if isappdata(0, 'estimation') if isappdata(0, 'estimation')
rmappdata(0,'estimation') rmappdata(0,'estimation')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment