Add clipboard argument to Application::update

This commit is contained in:
Héctor Ramón Jiménez 2021-03-11 03:38:20 +01:00
parent 7eb5127748
commit ae517b9fa0
18 changed files with 117 additions and 49 deletions

View file

@ -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()