fix(runtime-wry): apply closable, maximizable and minimizable effects from config (#9410)

closes #9409
This commit is contained in:
Amr Bashir 2024-04-21 16:43:30 +02:00 committed by GitHub
parent cf615e8e4d
commit 005fe8ce1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,6 @@
---
"tauri": "patch:bug"
"tauri-runtime-wry": "patch"
---
Fix `closable`, `maximizable` and `minimizable` options not taking effect when used in tauri.conf.json or from JS APIs.

View File

@ -772,6 +772,9 @@ impl WindowBuilder for WindowBuilderWrapper {
.content_protected(config.content_protected)
.skip_taskbar(config.skip_taskbar)
.theme(config.theme)
.closable(config.closable)
.maximizable(config.maximizable)
.minimizable(config.minimizable)
.shadow(config.shadow);
if let (Some(min_width), Some(min_height)) = (config.min_width, config.min_height) {