From 3456e9cc6be0c97f37f97f195a7be95b9993f425 Mon Sep 17 00:00:00 2001 From: Brady Fomegne Date: Wed, 24 Apr 2024 15:04:02 +0100 Subject: [PATCH] fix: problem with the gui on windows (#68) The issue was at the level of `rstk` crate. An update to `0.3.0` fixed the problem. Additional change: we revert the pr #63. --- Cargo.toml | 2 +- src/rstk_ext.rs | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 26cc580..02ff648 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,6 +19,6 @@ rhai = ["afrim/rhai"] [dependencies] afrim = { version = "0.5.4", default-features = false, git = "https://github.com/pythonbrad/afrim", rev = "7e5daba" } clap = "4.5.4" -rstk = "0.1.0" +rstk = "0.3.0" serde = { version = "1.0.197", features = ["serde_derive"] } toml = "0.8.12" diff --git a/src/rstk_ext.rs b/src/rstk_ext.rs index fb5d55d..a044fea 100644 --- a/src/rstk_ext.rs +++ b/src/rstk_ext.rs @@ -1,12 +1,7 @@ use rstk::*; pub fn init_rstk_ext() { - rstk::tell_wish( - r#" - chan configure stdin -encoding utf-8 - wm protocol . WM_DELETE_WINDOW {destroy .}; - "#, - ); + rstk::tell_wish("chan configure stdin -encoding utf-8"); } #[derive(Clone, Debug, Default)]