Skip to content

Menubar label doesn't refresh when window is hidden #512

Open
@lon9man

Description

@lon9man

What were you trying to do?

i am trying to refresh menubar-label periodically using my internal logic

What happened?

menubar-label refreshes itself only when open is visible. when window is hidden then label refreshes itself rarely without any predictable logic

How to reproduce the bug

project and screencast in the attachments. installed dependencies are removed.

  1. run:
    composer install
    npm install

  2. run the project
    php artisan native:serve

  3. open app window using menubar-icon, navigate to Login-page

  4. menubar-label will show Date::now() periodically in 1 sec

  5. hide window using menubar-icon

  6. menubar-label stops refreshing, in some different periods it refreshes itself, but using non-predictable periods

  7. also can be checked laravel.log to see log-records per each second of refreshing menubar-label:
    tail -f menubar-demo-app/storage/logs/laravel.log

Package Versions

"require": {
        "php": "^8.2",
        "laravel/framework": "^11.0",
        "laravel/tinker": "^2.10.1",
        "livewire/flux": "^2.0",
        "livewire/volt": "^1.6.7",
        "nativephp/electron": "^0.9.0"
    },

PHP Version

8.3.16

Laravel Version

11.44.1

Node Version

22.13.1

Which operating systems have you seen this occur on?

macOS

OS version

macos 15.3.1

Notes

screencast: https://drive.google.com/file/d/1t_OJU4QyZ20QrqS2uINnnglQtbZNk5_i/view?usp=sharing

project: menubar-demo-app.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions