Skip to content

[bug] Tray icon doesn't clean up on exit when TrayIcon.getById is called from js side #9499

Closed
@Legend-Master

Description

@Legend-Master

Describe the bug

Tray icon doesn't clean up on exit when TrayIcon.getById is called from js side

Reproduction

Add this to examples/api/src/main.js

import { TrayIcon } from '@tauri-apps/api/tray'
TrayIcon.getById('tray-1')

Add permission "tray:allow-get-by-id" to examples/api/src-tauri/capabilities/run-app.json

Expected behavior

No response

Full tauri info output

Current head e64b8f1dcedad3222f46755bf6f30392a7ec2f90

Stack trace

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions