Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] application show and hide methods doesn't work #5650

Closed
vicanso opened this issue Nov 18, 2022 · 0 comments
Closed

[bug] application show and hide methods doesn't work #5650

vicanso opened this issue Nov 18, 2022 · 0 comments
Labels
good first issue Good for newcomers priority: 2 medium scope: core Core packages of Tauri status: backlog Issue is ready and we can work on it type: bug

Comments

@vicanso
Copy link

vicanso commented Nov 18, 2022

Describe the bug

I set the allowlist config as follows:

"app": {
  "all": false,
  "hide": true,
  "show": false
},

However, it doesn't work, the error message is: Unhandled Promise Rejection: 'app > hide' not in the allowlist (https://tauri.app/docs/api/config#tauri.allowlist).
If I set the allowlist as follows:

"allowlist": {
      "all": true,
},

It works. I think it has not set app features in the config as follows:

https://github.com/tauri-apps/tauri/blob/dev/core/tauri-utils/src/config.rs#L2149

      features.extend(self.app.to_features());

Reproduction

No response

Expected behavior

No response

Platform and versions

Environment
› OS: Mac OS 13.0.1 X64
› Node.js: 18.6.0
› npm: 8.13.2
› pnpm: Not installed!
› yarn: 1.22.19
› rustup: 1.25.1
› rustc: 1.65.0
› cargo: 1.65.0
› Rust toolchain: stable-aarch64-apple-darwin

Packages

› @tauri-apps/cli [NPM]: 1.2.0
› @tauri-apps/api [NPM]: 1.2.0
› tauri [RUST]: 1.2.0,
› tauri-build [RUST]: 1.2.0,
› tao [RUST]: 0.15.4,
› wry [RUST]: 0.22.1,

Stack trace

No response

Additional context

No response

@vicanso vicanso added status: needs triage This issue needs to triage, applied to new issues type: bug labels Nov 18, 2022
@FabianLars FabianLars added scope: core Core packages of Tauri priority: 2 medium status: backlog Issue is ready and we can work on it good first issue Good for newcomers and removed status: needs triage This issue needs to triage, applied to new issues labels Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers priority: 2 medium scope: core Core packages of Tauri status: backlog Issue is ready and we can work on it type: bug
Projects
None yet
Development

No branches or pull requests

2 participants