Closed piegamesde closed 3 years ago
I think using
ctx.spawn(
woab::outside(async move {
(choose.clone(), choose.run())
})
.into_actor(self)
.map(move |result, this, _ctx| {
todo!()
})
);
as a workaround is concise enough for this kind of edge case.
No, it is not good enough. The problem with dialog.run()
is that it blocks the Actix loop, and this still happens when running native dialogs.
OK, I see your point. It turns out that:
FileChooserNative
is the only native dialog.FileChooser
instead.So yea, fuck it, I'm not incentivized enough to go through the trouble of introducing features to WoAB just to support this. Reclosing.
run_dialog
turns out to be incredibly useful, but I just ran into the issue that native dialogues implement other traits. SeeFileChooserNative
for example. It would be cool ifrun_dialog
supported this as well (mayberun_native_dialog
?).