summaryrefslogtreecommitdiffstats
path: root/native/src/command
diff options
context:
space:
mode:
authorLibravatar Richard <richardsoncusto@gmail.com>2022-02-16 19:37:38 -0300
committerLibravatar Richard <richardsoncusto@gmail.com>2022-04-26 18:54:23 -0300
commit69781499cb070535bfc4e968d9ed3102ea722fb3 (patch)
treeb08c61ebb646595ff9420351201bf71a1cf21df8 /native/src/command
parentfed8da1c9078638a96ae57a9dd6edacb0a1936b3 (diff)
downloadiced-69781499cb070535bfc4e968d9ed3102ea722fb3.tar.gz
iced-69781499cb070535bfc4e968d9ed3102ea722fb3.tar.bz2
iced-69781499cb070535bfc4e968d9ed3102ea722fb3.zip
Introduce `QueryInformation` to `system::Action`
Diffstat (limited to 'native/src/command')
-rw-r--r--native/src/command/action.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/command/action.rs b/native/src/command/action.rs
index 39536f7d..342d0cfe 100644
--- a/native/src/command/action.rs
+++ b/native/src/command/action.rs
@@ -20,7 +20,7 @@ pub enum Action<T> {
Window(window::Action),
/// Run a system action.
- System(system::Action),
+ System(system::Action<T>),
}
impl<T> Action<T> {
@@ -38,7 +38,7 @@ impl<T> Action<T> {
Self::Future(future) => Action::Future(Box::pin(future.map(f))),
Self::Clipboard(action) => Action::Clipboard(action.map(f)),
Self::Window(window) => Action::Window(window),
- Self::System(system) => Action::System(system),
+ Self::System(system) => Action::System(system.map(f)),
}
}
}