-
Imagine an application which has a state. I want to persist the state upon closing a window/application so that I can load it again the next time it starts. (writing the state to disk on every change is not viable) I did not find any examples that would help. Can you help me? I tried something like
But that does not really work:
I could also go with some solutions which are not tied to the GUI, but it feels like a workaround. Thanks! :) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
We currently do not have such way. What kind of cleanup exactly do you need to perform? |
Beta Was this translation helpful? Give feedback.
-
In the master branch, we added a on_close_requested function to the Window: https://slint-ui.com/snapshots/master/docs/rust/slint/struct.window#method.on_close_requested |
Beta Was this translation helpful? Give feedback.
-
How do you set this in Node? |
Beta Was this translation helpful? Give feedback.
In the master branch, we added a on_close_requested function to the Window: https://slint-ui.com/snapshots/master/docs/rust/slint/struct.window#method.on_close_requested