From cf1314ce53fb0f4e1f10b25382dfe193ac5f7955 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Mon, 14 Mar 2022 19:20:05 +0100 Subject: [PATCH] Update iced_baseview Now the window always redraws no matter what. --- Cargo.lock | 6 +++--- nih_plug_iced/src/lib.rs | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 427d1614..64d23fbe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1396,7 +1396,7 @@ checksum = "dfa686283ad6dd069f105e5ab091b04c62850d3e4cf5d67debad1933f55023df" [[package]] name = "iced_baseview" version = "0.0.3" -source = "git+https://github.com/robbert-vdh/iced_baseview.git?branch=feature/update-baseview#1439b4212fc94a5eff12450621cd03f880cf1b56" +source = "git+https://github.com/robbert-vdh/iced_baseview.git?branch=feature/update-baseview#3eff874630c493d8837f64fd3408172c369ebdf2" dependencies = [ "baseview", "copypasta", @@ -1660,9 +1660,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.119" +version = "0.2.120" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4" +checksum = "ad5c14e80759d0939d013e6ca49930e59fc53dd8e5009132f76240c179380c09" [[package]] name = "libloading" diff --git a/nih_plug_iced/src/lib.rs b/nih_plug_iced/src/lib.rs index fcc6f163..f2288eac 100644 --- a/nih_plug_iced/src/lib.rs +++ b/nih_plug_iced/src/lib.rs @@ -232,7 +232,10 @@ impl Editor for IcedEditorWrapper { #[cfg(not(feature = "opengl"))] gl_config: None, }, - ignore_non_modifier_keys: false, + iced_baseview: IcedBaseviewSettings { + ignore_non_modifier_keys: false, + always_redraw: true, + }, // We use this wrapper to be able to pass the GUI context to the editor flags: ( context,