diff options
author | 2024-08-08 01:37:51 +0200 | |
---|---|---|
committer | 2024-08-08 01:37:51 +0200 | |
commit | 1c8850023f2bdeae02ec061a49aa76dbb91262ad (patch) | |
tree | 38ca9c054e92626b53add458cd62b90377e5135e /runtime/src/lib.rs | |
parent | d5ffe98ce939990e6c8ef6f40895cd1f9633fe18 (diff) | |
parent | 0ce81a0e0e237a162dec3c1ed90c4675192d4040 (diff) | |
download | iced-1c8850023f2bdeae02ec061a49aa76dbb91262ad.tar.gz iced-1c8850023f2bdeae02ec061a49aa76dbb91262ad.tar.bz2 iced-1c8850023f2bdeae02ec061a49aa76dbb91262ad.zip |
Merge pull request #2544 from iced-rs/display-hover-when-focused
Display top contents in `hover` widget when focused
Diffstat (limited to 'runtime/src/lib.rs')
-rw-r--r-- | runtime/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index f27657d1..7230fc73 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -59,7 +59,7 @@ pub enum Action<T> { }, /// Run a widget operation. - Widget(Box<dyn widget::Operation<()>>), + Widget(Box<dyn widget::Operation>), /// Run a clipboard action. Clipboard(clipboard::Action), @@ -79,7 +79,7 @@ pub enum Action<T> { impl<T> Action<T> { /// Creates a new [`Action::Widget`] with the given [`widget::Operation`]. - pub fn widget(operation: impl widget::Operation<()> + 'static) -> Self { + pub fn widget(operation: impl widget::Operation + 'static) -> Self { Self::Widget(Box::new(operation)) } |