Surrealism-All / SurrealismUI

A third-party UI library using Slint, I think it will give you an extraordinary experience
https://surrealism-all.github.io/SurrealismUI.github.io/
MIT License
216 stars 20 forks source link

menu change callback issure #35

Closed swordlet closed 6 months ago

swordlet commented 6 months ago

change callback will be called when item not change.

please add if condition when menu-item or sub-menu-item clicked :

clicked => {
  if (root.active != item.id) {
    root.active = item.id;
    root.change(index,item);
  }
}
syf20020816 commented 6 months ago

great, handled!

syf20020816 commented 6 months ago

It will be released over the weekend