diff options
author | 2022-02-16 19:37:38 -0300 | |
---|---|---|
committer | 2022-04-26 18:54:23 -0300 | |
commit | 69781499cb070535bfc4e968d9ed3102ea722fb3 (patch) | |
tree | b08c61ebb646595ff9420351201bf71a1cf21df8 /native/src/command | |
parent | fed8da1c9078638a96ae57a9dd6edacb0a1936b3 (diff) | |
download | iced-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.rs | 4 |
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)), } } } |