From c807abdfd70c49b0c93868c12f142a2fb4c08036 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 25 Jun 2022 05:30:48 +0200 Subject: Fix `Theme` not being refreshed in `iced_glutin` --- glutin/src/application.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'glutin/src/application.rs') diff --git a/glutin/src/application.rs b/glutin/src/application.rs index 5fce58be..a222036a 100644 --- a/glutin/src/application.rs +++ b/glutin/src/application.rs @@ -212,7 +212,7 @@ async fn run_instance( let mut state = application::State::new(&application, context.window()); let mut viewport_version = state.viewport_version(); - let theme = application.theme(); + let mut theme = application.theme(); let mut user_interface = ManuallyDrop::new(application::build_user_interface( @@ -278,6 +278,7 @@ async fn run_instance( let should_exit = application.should_exit(); + theme = application.theme(); user_interface = ManuallyDrop::new(application::build_user_interface( &mut application, -- cgit