Skip to content

Commit 7907699

Browse files
committed
traffic light hotfix
1 parent afbba30 commit 7907699

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

plugins/windows/src/lib.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ mod test {
114114

115115
#[test]
116116
fn test_version() {
117-
println!("version: {}", tauri_plugin_os::version());
117+
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);
118124
}
119125
}

plugins/windows/src/window/v1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl AppWindow {
5959
.and_then(|v| v.parse::<u32>().ok())
6060
.unwrap_or(0);
6161

62-
if major >= 26 { 24.0 } else { 18.0 }
62+
if major >= 26 { 18.0 } else { 18.0 }
6363
};
6464

6565
builder = builder

0 commit comments

Comments
 (0)