summaryrefslogtreecommitdiffstats
path: root/native/src/command/action.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-08-18 15:03:56 +0200
committerLibravatar GitHub <noreply@github.com>2022-08-18 15:03:56 +0200
commitda7e8598406fcde2a33ea749d561a2f10dbb5407 (patch)
tree489f7cfbb134b8736290f30010fe680a31c90423 /native/src/command/action.rs
parent07cbed106467097543ff33d3b34e0e1ca6f695ae (diff)
parent11f5527d7645619f49b030e30485f24ac637efbd (diff)
downloadiced-da7e8598406fcde2a33ea749d561a2f10dbb5407.tar.gz
iced-da7e8598406fcde2a33ea749d561a2f10dbb5407.tar.bz2
iced-da7e8598406fcde2a33ea749d561a2f10dbb5407.zip
Merge pull request #1389 from iced-rs/refactor-window-mode
Replace `window::Mode` with window commands
Diffstat (limited to 'native/src/command/action.rs')
-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 3fb02899..a6954f8f 100644
--- a/native/src/command/action.rs
+++ b/native/src/command/action.rs
@@ -20,7 +20,7 @@ pub enum Action<T> {
Clipboard(clipboard::Action<T>),
/// Run a window action.
- Window(window::Action),
+ Window(window::Action<T>),
/// Run a system action.
System(system::Action<T>),
@@ -46,7 +46,7 @@ impl<T> Action<T> {
match self {
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::Window(window) => Action::Window(window.map(f)),
Self::System(system) => Action::System(system.map(f)),
Self::Widget(widget) => Action::Widget(widget.map(f)),
}