Skip to content

Commit

Permalink
fix(runtime-wry): apply closable, maximizable and minimizable e…
Browse files Browse the repository at this point in the history
…ffects from config (#9410)

closes #9409
  • Loading branch information
amrbashir committed Apr 21, 2024
1 parent cf615e8 commit 005fe8c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changes/closeable-maximizable.md
@@ -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.
3 changes: 3 additions & 0 deletions core/tauri-runtime-wry/src/lib.rs
Expand Up @@ -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) {
Expand Down

0 comments on commit 005fe8c

Please sign in to comment.