From 76698ff2b5753e637b14533650c0d28e681be3c5 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 1 Sep 2021 19:21:49 +0700 Subject: Make `Command` implementations platform-specific This allows us to introduce a platform-specific `Action` to both `iced_native` and `iced_web` and remove the `Clipboard` from `Application::update` to maintain purity. Additionally, this should let us implement further actions to let users query and modify the shell environment (e.g. window, clipboard, and more!) --- glutin/src/application.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'glutin') diff --git a/glutin/src/application.rs b/glutin/src/application.rs index 4a5f4bd2..1368f7f8 100644 --- a/glutin/src/application.rs +++ b/glutin/src/application.rs @@ -48,7 +48,7 @@ where let subscription = application.subscription(); - runtime.spawn(init_command); + application::run_command(init_command, &mut runtime); runtime.track(subscription); let context = { @@ -211,7 +211,6 @@ async fn run_instance( &mut application, &mut runtime, &mut debug, - &mut clipboard, &mut messages, ); -- cgit