Переглянути джерело

fix(core): extend allowlist with `app`'s allowlist, closes #5650 (#5652)

Amr Bashir 2 роки тому
батько
коміт
bb2510876d
2 змінених файлів з 6 додано та 0 видалено
  1. 5 0
      .changes/app-show-hide.md
  2. 1 0
      core/tauri-utils/src/config.rs

+ 5 - 0
.changes/app-show-hide.md

@@ -0,0 +1,5 @@
+---
+"tauri-utils": "patch"
+---
+
+Fix `allowlist > app > show/hide` always disabled when `allowlist > app > all: false`.

+ 1 - 0
core/tauri-utils/src/config.rs

@@ -2147,6 +2147,7 @@ impl Allowlist for AllowlistConfig {
       features.extend(self.protocol.to_features());
       features.extend(self.process.to_features());
       features.extend(self.clipboard.to_features());
+      features.extend(self.app.to_features());
       features
     }
   }