summaryrefslogtreecommitdiffstats
path: root/winit/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2023-11-29 14:26:44 +0100
committerLibravatar GitHub <noreply@github.com>2023-11-29 14:26:44 +0100
commit7f8b17604a31e00becc43130ec516c1a53552c88 (patch)
treeb7cbc5ba003d61416d7959a6a704839b53822660 /winit/src
parent7e7d65a23d864e4662c43028a41244ca30cac540 (diff)
parenta761448858521d11dc646e2ef5217e9e06628932 (diff)
downloadiced-7f8b17604a31e00becc43130ec516c1a53552c88.tar.gz
iced-7f8b17604a31e00becc43130ec516c1a53552c88.tar.bz2
iced-7f8b17604a31e00becc43130ec516c1a53552c88.zip
Merge pull request #2150 from iced-rs/feature/command-run
`Stream` support for `Command`
Diffstat (limited to 'winit/src')
-rw-r--r--winit/src/application.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs
index 315e34d9..2c5c864a 100644
--- a/winit/src/application.rs
+++ b/winit/src/application.rs
@@ -736,6 +736,9 @@ pub fn run_command<A, C, E>(
command::Action::Future(future) => {
runtime.spawn(future);
}
+ command::Action::Stream(stream) => {
+ runtime.run(stream);
+ }
command::Action::Clipboard(action) => match action {
clipboard::Action::Read(tag) => {
let message = tag(clipboard.read());