Skip to content

Commit 005fe8c

Browse files
authored
fix(runtime-wry): apply closable, maximizable and minimizable effects from config (#9410)
closes #9409
1 parent cf615e8 commit 005fe8c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changes/closeable-maximizable.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri": "patch:bug"
3+
"tauri-runtime-wry": "patch"
4+
---
5+
6+
Fix `closable`, `maximizable` and `minimizable` options not taking effect when used in tauri.conf.json or from JS APIs.

core/tauri-runtime-wry/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,9 @@ impl WindowBuilder for WindowBuilderWrapper {
772772
.content_protected(config.content_protected)
773773
.skip_taskbar(config.skip_taskbar)
774774
.theme(config.theme)
775+
.closable(config.closable)
776+
.maximizable(config.maximizable)
777+
.minimizable(config.minimizable)
775778
.shadow(config.shadow);
776779

777780
if let (Some(min_width), Some(min_height)) = (config.min_width, config.min_height) {

0 commit comments

Comments
 (0)