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] decorations false do not work #11877

Closed
songjiachao opened this issue Dec 6, 2024 · 3 comments
Closed

[bug] decorations false do not work #11877

songjiachao opened this issue Dec 6, 2024 · 3 comments
Labels
platform: macOS status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@songjiachao
Copy link

Describe the bug

iShot_2024-12-06_11 02 26 image

Reproduction

No response

Expected behavior

No response

Full tauri info output

❯ cargo tauri info         


[✔] Environment
    - OS: Mac OS 15.1.1 arm64 (X64)
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.82.0 (f6e511eec 2024-10-15)
    ✔ cargo: 1.82.0 (8f40fc59f 2024-08-21)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (environment override by RUSTUP_TOOLCHAIN)
    - node: 20.18.0
    - pnpm: 9.12.2
    - npm: 10.8.2
    - bun: 1.1.34

[-] Packages
    - tauri 🦀: 2.1.1
    - tauri-build 🦀: 2.0.3
    - wry 🦀: 0.47.2
    - tao 🦀: 0.30.8
    - tauri-cli 🦀: 2.1.0
    - @tauri-apps/api : 2.1.1
    - @tauri-apps/cli : 2.1.0

[-] Plugins
    - tauri-plugin-shell 🦀: 2.0.2
    - @tauri-apps/plugin-shell : 2.0.1
    - tauri-plugin-store 🦀: 2.1.0
    - @tauri-apps/plugin-store : 2.1.0
    - tauri-plugin-http 🦀: 2.0.4
    - @tauri-apps/plugin-http : 2.0.1
    - tauri-plugin-log 🦀: 2.0.3
    - @tauri-apps/plugin-log : not installed!
    - tauri-plugin-os 🦀: 2.0.1
    - @tauri-apps/plugin-os : 2.0.0
    - tauri-plugin-dialog 🦀: 2.0.4
    - @tauri-apps/plugin-dialog : 2.0.1
    - tauri-plugin-fs 🦀: 2.1.0
    - @tauri-apps/plugin-fs : 2.0.3
    - tauri-plugin-notification 🦀: 2.0.1
    - @tauri-apps/plugin-notification : not installed!
    - tauri-plugin-process 🦀: 2.0.1
    - @tauri-apps/plugin-process : 2.0.0
    - tauri-plugin-deep-link 🦀: 2.0.2
    - @tauri-apps/plugin-deep-link : not installed!
    - tauri-plugin-updater 🦀: 2.1.0
    - @tauri-apps/plugin-updater : 2.0.0
    - tauri-plugin-single-instance 🦀: 2.0.2
    - @tauri-apps/plugin-single-instance : not installed!
    - tauri-plugin-barcode-scanner 🦀: 2.0.1
    - @tauri-apps/plugin-barcode-scanner : not installed!
    - tauri-plugin-autostart 🦀: 2.0.1
    - @tauri-apps/plugin-autostart : 2.0.0
    - tauri-plugin-window-state 🦀: 2.0.2
    - @tauri-apps/plugin-window-state : 2.0.0
    - tauri-plugin-global-shortcut 🦀: 2.0.1
    - @tauri-apps/plugin-global-shortcut : 2.0.0

[-] App
    - build-type: bundle
    - CSP: style-src 'unsafe-inline' 'self' https://fonts.googleapis.com; font-src https://fonts.gstatic.com 'self' asset: http://asset.localhost; default-src 'self' customprotocol: asset:; script-src 'unsafe-eval' 'self'; frame-src https: asset: http://asset.localhost; media-src https://h5-inside.vmic.xyz/fun/assets/why-fun.mp4; img-src  'self' asset: http://asset.localhost blob: data: https: http://api.iconify.design http://fun.vmic.xyz; connect-src ipc: tauri: http: ws: https:; object-src 'self' asset: http://asset.localhost
    - frontendDist: ../dist
    - devUrl: http://127.0.0.1:1420/
    - framework: Vue.js
    - bundler: Vite

Stack trace

No response

Additional context

No response

@songjiachao songjiachao added status: needs triage This issue needs to triage, applied to new issues type: bug labels Dec 6, 2024
@songjiachao
Copy link
Author

image

but this effect

window.set_decorations(false).unwrap(); 

@project-AI39
Copy link

project-AI39 commented Dec 12, 2024

I'm also facing the same issue where "decorations": false doesn't work, In my case, clearing the cache %APPDATA%/(your-app-identifier) folder resolved the problem. I'm not sure if it will work for your environment, but I hope this helps a little.

@Legend-Master
Copy link
Contributor

Legend-Master commented Dec 14, 2024

Since you seem to be also using window state plugin, maybe check if tauri-apps/plugins-workspace#2203 (comment) helps?

This might not be very intuitive, but window state plugin saves and restores the decoration state by default (it means if you used decorations: true the first time and decorations: false the second time, the decorations will be restored to true because it's saved in that way), you can disable it through with_state_flags though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: macOS status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

4 participants