diff --git a/PIVlab_capture_resources/PIVlab_capture_pco.m b/PIVlab_capture_resources/PIVlab_capture_pco.m index fb4487b..d910072 100644 --- a/PIVlab_capture_resources/PIVlab_capture_pco.m +++ b/PIVlab_capture_resources/PIVlab_capture_pco.m @@ -563,7 +563,7 @@ if isvalid(image_handle_pco) hist_fig=findobj('tag','hist_fig'); if isempty(hist_fig) - hist_fig=figure('numbertitle','off','MenuBar','none','DockControls','off','Name','Live histogram','Toolbar','none','tag','hist_fig'); + hist_fig=figure('numbertitle','off','MenuBar','none','DockControls','off','Name','Live histogram','Toolbar','none','tag','hist_fig','CloseRequestFcn', @HistWindow_CloseRequestFcn); end if ~exist ('old_hist_y_limits','var') old_hist_y_limits =[0 35000]; @@ -840,3 +840,11 @@ end end +function HistWindow_CloseRequestFcn(hObject,~) +hgui=getappdata(0,'hgui'); +setappdata(hgui,'hist_enabled',0); +try + delete(hObject); +catch + delete(gcf); +end diff --git a/PIVlab_settings_default.mat b/PIVlab_settings_default.mat index 107b5cf..adff65b 100644 Binary files a/PIVlab_settings_default.mat and b/PIVlab_settings_default.mat differ diff --git a/resources/project/Root.type.ProjectPath/210c4d73-b95c-42b7-9a51-21aa2be28e89.type.Reference.xml b/resources/project/Root.type.ProjectPath/210c4d73-b95c-42b7-9a51-21aa2be28e89.type.Reference.xml deleted file mode 100644 index d1b4c40..0000000 --- a/resources/project/Root.type.ProjectPath/210c4d73-b95c-42b7-9a51-21aa2be28e89.type.Reference.xml +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/resources/project/Root.type.ProjectPath/976c6002-4035-43b6-875e-c3235f283e1d.type.Reference.xml b/resources/project/Root.type.ProjectPath/976c6002-4035-43b6-875e-c3235f283e1d.type.Reference.xml deleted file mode 100644 index 6003c7b..0000000 --- a/resources/project/Root.type.ProjectPath/976c6002-4035-43b6-875e-c3235f283e1d.type.Reference.xml +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file