You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Slint to make a relatively complex GUI, and currently I'm using Dialog to implement small forms. The current dialog has an okStandardButton and cancelStandardButton. I've implemented it so that clicking the cancel button closes the Dialog (the doc page says that this should automatically happen, but that doesn't seem to be implemented?), and clicking the ok button does other stuff, then closes it too. However, when I actually click the ok button, it does close the dialog, but doesn't run the callback (which prints a test string), despite the minimal reproducible snippet below compiling without any warnings (other than val being unused). Sorry if this is simple, but it's weird that this callback isn't called, despite callbacks in other parts of the project working fine, and I don't see any other similar issues.
Bug Description
I'm using Slint to make a relatively complex GUI, and currently I'm using
Dialog
to implement small forms. The current dialog has anok
StandardButton
andcancel
StandardButton
. I've implemented it so that clicking thecancel
button closes theDialog
(the doc page says that this should automatically happen, but that doesn't seem to be implemented?), and clicking theok
button does other stuff, then closes it too. However, when I actually click theok
button, it does close the dialog, but doesn't run the callback (which prints a test string), despite the minimal reproducible snippet below compiling without any warnings (other thanval
being unused). Sorry if this is simple, but it's weird that this callback isn't called, despite callbacks in other parts of the project working fine, and I don't see any other similar issues.Reproducible Code (if applicable)
Environment Details
Product Impact
This is just a toy app I'm making so I can get better experience of Rust etc. It's not for an organization or anything.
The text was updated successfully, but these errors were encountered: