Add clipboard argument to Application::update
This commit is contained in:
parent
7eb5127748
commit
ae517b9fa0
18 changed files with 117 additions and 49 deletions
|
|
@ -1,5 +1,6 @@
|
|||
use crate::{
|
||||
Application, Color, Command, Element, Error, Settings, Subscription,
|
||||
Application, Clipboard, Color, Command, Element, Error, Settings,
|
||||
Subscription,
|
||||
};
|
||||
|
||||
/// A sandboxed [`Application`].
|
||||
|
|
@ -161,7 +162,11 @@ where
|
|||
T::title(self)
|
||||
}
|
||||
|
||||
fn update(&mut self, message: T::Message) -> Command<T::Message> {
|
||||
fn update(
|
||||
&mut self,
|
||||
message: T::Message,
|
||||
_clipboard: &mut Clipboard,
|
||||
) -> Command<T::Message> {
|
||||
T::update(self, message);
|
||||
|
||||
Command::none()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue