Skip to content

Commit

Permalink
Fix #613
Browse files Browse the repository at this point in the history
  • Loading branch information
GrimMaple committed May 24, 2023
1 parent 6250d4e commit 098a604
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dlangui/widgets/menu.d
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,9 @@ class MenuWidgetBase : ListWidget {
}

@property void menuItems(MenuItem item) {
// Do not reassign the same item (https://github.com/buggins/dlangui/issues/613)
if(_item == item)
return;
if (_item) {
destroy(_item);
_item = null;
Expand Down

0 comments on commit 098a604

Please sign in to comment.