Skip to content

Commit

Permalink
Bugfix: Show sgnificant clusters menu only for stat files
Browse files Browse the repository at this point in the history
  • Loading branch information
ftadel committed Apr 3, 2023
1 parent a892cfa commit a650763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolbox/tree/tree_callbacks.m
Original file line number Diff line number Diff line change
Expand Up @@ -2366,7 +2366,7 @@
gui_component('MenuItem', jPopup, [], 'Display as image', IconLoader.ICON_NOISECOV, [], @(h,ev)view_matrix(filenameFull, 'Image'));
gui_component('MenuItem', jPopup, [], 'Display as table', IconLoader.ICON_MATRIX, [], @(h,ev)view_matrix(filenameFull, 'Table'));
% === STAT CLUSTERS ===
if ~isempty(strfind(filenameRelative, '_cluster'))
if strcmpi(nodeType, 'pmatrix') && ~isempty(strfind(filenameRelative, '_cluster'))
AddSeparator(jPopup);
jMenuCluster = gui_component('Menu', jPopup, [], 'Significant clusters', IconLoader.ICON_ATLAS, [], []);
gui_component('MenuItem', jMenuCluster, [], 'Cluster indices', IconLoader.ICON_TIMEFREQ, [], @(h,ev)view_statcluster(filenameRelative, 'clustindex_time', []));
Expand Down

0 comments on commit a650763

Please sign in to comment.