Skip to content

[nvtop][BUG] Panel does not close when already open, unlike other panels #521

Description

@FailThat

Submission checklist

  • I have searched existing issues and confirmed this is not a duplicate.
  • I am using the latest available version of Noctalia and of the plugin.
  • This is a bug in a community plugin, not in Noctalia itself (those belong in the noctalia repo).

Plugin

nvtop

Plugin version

1.0.0

Bug description

Clicking a widget that toggles the panel does not close it if the panel is opened; instead, it reopens the panel

Steps to reproduce

  1. Add a sysmon widget to the panel using the GPU Usage stat
  2. Click the added sysmon widget in the panel. The default behavior on left click is the control center panel opens, then click the widget again, the control center panel closes
  3. Change the left click action of the sysmon widget to panel-toggle tordex/nvtop
  4. Click the sysmon widget in the panel. The behavior on left click is the panel opens, then click the widget again, the panel opens again

Expected behavior

The panel closes if it is already open, following the behavior of other panel toggles

Actual behavior

Panel does not close when already open, unlike other panels

Logs / error output


Noctalia version

v5.0.0-beta.10

Compositor

Niri

Environment information


Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions