Skip to content

Commit

Permalink
call apc_menu_update only once per new object
Browse files Browse the repository at this point in the history
  • Loading branch information
dk committed Oct 5, 2024
1 parent f4e0910 commit 620fc3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class/AbstractMenu.c
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ AbstractMenu_set_items( Handle self, SV * items)
PMenuItemReg oldBranch = var-> tree;
if ( var-> stage > csFrozen) return;
var-> tree = ( PMenuItemReg) my-> new_menu( self, items, 0, NULL);
if ( var-> stage <= csNormal && var-> system)
if ( var-> stage == csNormal && var-> system)
apc_menu_update( self, oldBranch, var-> tree);
my-> dispose_menu( self, oldBranch);
notify( self, "<sss", "Change", "items", "");
Expand Down

0 comments on commit 620fc3d

Please sign in to comment.