Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion braph2/src/gui/PanelProp.m
Original file line number Diff line number Diff line change
Expand Up @@ -1370,8 +1370,18 @@ function postset(pr, prop)

function cb_button_cb(~, ~)
gui_cb = pr.memorize('GUI_CB');

% find repeating figures
all_figs = findall(0, 'type', 'figure');
for i = 1:1:length(all_figs)
user_data = all_figs(i).get('UserData');
if isa(user_data, 'GUIElement') && user_data.get('PE').get('EL') == gui_cb.get('PE').get('EL')
user_data.get('PE').get('SHOW')
return
end
end

if ~gui_cb.get('DRAWN')
if ~gui_cb.get('DRAWN')
gui_cb.get('DRAW')
gui_cb.get('SHOW')
else
Expand Down
10 changes: 10 additions & 0 deletions braph2genesis/src/gui/_PanelProp.gen.m
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,16 @@ A Prop Panel (PanelProp) renders a property of an element in a panel.
function cb_button_cb(~, ~)
gui_cb = pr.memorize('GUI_CB');

% find repeating figures
all_figs = findall(0, 'type', 'figure');
for i = 1:1:length(all_figs)
user_data = all_figs(i).get('UserData');
if isa(user_data, 'GUIElement') && user_data.get('PE').get('EL') == gui_cb.get('PE').get('EL')
user_data.get('PE').get('SHOW')
return
end
end

if ~gui_cb.get('DRAWN')
gui_cb.get('DRAW')
gui_cb.get('SHOW')
Expand Down