slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
16.94k stars 568 forks source link

Popup close-on-click, disables possibility to close popup in lsp #4037

Closed qarmin closed 9 months ago

qarmin commented 9 months ago

Slint nightly LSP

Looks that problem only happens with LSP(not sure, but probably not always happens), but not with rust

popup.close() should always close popup

CODE

Crash is reported in different issue - #4035

https://github.com/slint-ui/slint/assets/41945903/23d12624-4a1f-407b-9338-e1107e4681d3

ogoffart commented 9 months ago

I think the issue preventing the button to work properly has been fixed in #4040

But I still can reproduce a crash (not the one from #4035) because popup_window.close_on_click = ... crashes as the property doesn't really exist at runtime.