From bbe994e781e34f933ecd026840939cc04bf9cbac Mon Sep 17 00:00:00 2001 From: Olaf Wintermann Date: Tue, 11 Aug 2026 21:50:42 +0200 Subject: [PATCH] use AppStates enum directly instead of casting it to i32 --- application/note/src/main.rs | 1 + application/note/src/window.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/application/note/src/main.rs b/application/note/src/main.rs index 14bbb7b..0ed0902 100644 --- a/application/note/src/main.rs +++ b/application/note/src/main.rs @@ -187,6 +187,7 @@ fn create_toolbar(app: &AppContext) { #[repr(i32)] +#[derive(Copy, Clone, Debug)] pub enum AppStates { Null = 0, NoteEnableNew, diff --git a/application/note/src/window.rs b/application/note/src/window.rs index 03b452b..7538daf 100644 --- a/application/note/src/window.rs +++ b/application/note/src/window.rs @@ -272,12 +272,12 @@ pub fn create_window(app: &App, ctx: &AppContext) -> UiObject