RibirX / Ribir

Non-intrusive GUI framework for Rust
https://ribir.org
MIT License
849 stars 18 forks source link

Bugs in the todos example #605

Closed STPR closed 3 months ago

STPR commented 3 months ago

Hello, I'm actually testing ribir so I've compiled the todos example in Rust 1.79 under Windows 10 and I've found some bugs:

M-Adoo commented 3 months ago

Thank you for your report. To assist us in reproducing the issue, could you please provide the following information?

STPR commented 3 months ago

It was the v0.3.0-alpha.5 but I've just tested the v0.4.0-alpha.2 and the 2 previous bugs are corrected. There are still some (sometimes, new tasks or checkboxes's states aren't saved after closing the app) but it doesn't crash...

M-Adoo commented 3 months ago

It was the v0.3.0-alpha.5 but I've just tested the v0.4.0-alpha.2 and the 2 previous bugs are corrected. There are still some (sometimes, new tasks or checkboxes's states aren't saved after closing the app) but it doesn't crash...

Thank you. This may be the expected behavior. The state is not saved immediately because the save operation is debounced with a 5-second delay.

STPR commented 3 months ago

Ok. But if you happen to do somethings then close/reopen the app before the 5sec delay, it loses everything you've done previously.

M-Adoo commented 3 months ago

While this would be considered a bug in a production application, in this case, it's part of a simple app designed to demonstrate the framework's usage. The goal is to maintain the code's simplicity.