Closed DevJac closed 5 years ago
Nevermind. I just have to return None
and it works.
What does returning None
from on_data_load
do? Just the default I guess?
Yes, but on_data_ready
should work. I'll check.
Here we go: https://docs.rs/sciter-rs/0.5.45/sciter/host/enum.LOAD_RESULT.html
LOAD_MYSELF
indicates that you will use HREQUEST
. Use none or default in case of data_ready
.
The docs are not clear, I agree.
I have the following code:
The output when I run this code is:
The archive is clearly working, but when I run this code it just shows a blank Sciter window, as though the file load never did anything.
I believe my code here is self contained, you just have to change
app_main
tomain
(and I guess get rid of the database connection parameter that's never used).