Browse Source

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

closes #9409
Amr Bashir 1 year ago
parent
commit
005fe8ce1e
2 changed files with 9 additions and 0 deletions
  1. 6 0
      .changes/closeable-maximizable.md
  2. 3 0
      core/tauri-runtime-wry/src/lib.rs

+ 6 - 0
.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 - 0
core/tauri-runtime-wry/src/lib.rs

@@ -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) {