We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afbba30 commit 7907699Copy full SHA for 7907699
plugins/windows/src/lib.rs
@@ -114,6 +114,12 @@ mod test {
114
115
#[test]
116
fn test_version() {
117
- println!("version: {}", tauri_plugin_os::version());
+ let version = tauri_plugin_os::version()
118
+ .to_string()
119
+ .split('.')
120
+ .next()
121
+ .and_then(|v| v.parse::<u32>().ok())
122
+ .unwrap_or(0);
123
+ println!("version: {}", version);
124
}
125
plugins/windows/src/window/v1.rs
@@ -59,7 +59,7 @@ impl AppWindow {
59
.and_then(|v| v.parse::<u32>().ok())
60
.unwrap_or(0);
61
62
- if major >= 26 { 24.0 } else { 18.0 }
+ if major >= 26 { 18.0 } else { 18.0 }
63
};
64
65
builder = builder
0 commit comments