From: Olaf Wintermann Date: Tue, 11 Aug 2026 19:50:42 +0000 (+0200) Subject: use AppStates enum directly instead of casting it to i32 X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;h=HEAD;p=note.git use AppStates enum directly instead of casting it to i32 --- 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