refactor: combine open and save dialogs

This commit is contained in:
Michael Aaron Murphy 2023-08-15 17:20:19 +02:00
parent 675f3ff768
commit f793af0b92
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
12 changed files with 421 additions and 531 deletions

View file

@ -23,7 +23,7 @@ pub fn batch<M>(commands: impl IntoIterator<Item = Command<M>>) -> Command<M> {
Command::batch(commands)
}
/// Yields a command which will run the future on thet runtime executor.
/// Yields a command which will run the future on the runtime executor.
pub fn future<M: Send + 'static>(future: impl Future<Output = M> + Send + 'static) -> Command<M> {
Command::single(Action::Future(Box::pin(future)))
}