Skip to content

'jamulus -s' window doesn't show up when user clicks on the tray icon #1393

@yurivict

Description

@yurivict

This code snippet leads to a correct behavior:

       connect(&trayIcon, &QSystemTrayIcon::activated, [this](QSystemTrayIcon::ActivationReason reason) {
                switch (reason) {
                case QSystemTrayIcon::DoubleClick:
                case QSystemTrayIcon::Trigger:
                        if (isVisible() && !isMinimized()) {
                                hide();
                        } else {
                                showNormal();
                                activateWindow();
                        }
                        break;
                default:
                        ;
                }
        });

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions