check for app elevation in Default of Flags

This commit is contained in:
2025-04-21 12:38:20 +01:00
parent 27b09be76e
commit 1f6fc22525
2 changed files with 12 additions and 4 deletions
+11 -1
View File
@@ -17,13 +17,23 @@ enum Stage {
About,
}
#[derive(Debug, Default)]
#[derive(Debug)]
pub struct Flags {
pub elevated: bool,
pub debug: bool,
closing: bool,
}
impl Default for Flags {
fn default() -> Self {
Self {
elevated: win::is_elevated(),
debug: false,
closing: false,
}
}
}
#[derive(Debug, Default)]
pub struct App {
pub meta: Meta,