This commit is contained in:
Grim Maple 2023-05-24 17:25:37 +03:00
parent 6250d4ef48
commit 098a604856
1 changed files with 3 additions and 0 deletions

View File

@ -507,6 +507,9 @@ class MenuWidgetBase : ListWidget {
} }
@property void menuItems(MenuItem item) { @property void menuItems(MenuItem item) {
// Do not reassign the same item (https://github.com/buggins/dlangui/issues/613)
if(_item == item)
return;
if (_item) { if (_item) {
destroy(_item); destroy(_item);
_item = null; _item = null;