Skip to content

multiple "Preferences" item in context menu #9

@hyOzd

Description

@hyOzd

I've noticed each time you move this applet around in your panel, a new duplicate "Preferences" item appears in context menu. I believe the problem is caused by this piece of code:

https://github.com/ccadeptic23/Multi-Core-System-Monitor/blob/master/applet.js#L141

on_orientation_changed: function (orientation) {
    this._initContextMenu();
},

I did some debugging, and it seems that; when you move an applet in the panel on_orientation_changed() method is called even if the orientation of the applet is the same. And this causes duplicate items in context menu.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions