HaikuArchives / TrackGit

6 stars 5 forks source link

TrackGit menu multiplies #7

Open Vidrep opened 6 years ago

Vidrep commented 6 years ago

Hard to describe...

Each time TrackGit is invoked by a right click in a project, there is another instance of TrackGit added to the menu. See screenshot! https://imgur.com/a/zXqjqXO

janus2 commented 6 years ago

This happen only in the TrackGit repository I did not see this behavior on other projects.

Hrily commented 6 years ago

The way it was programmed was, whenever the menu is spawned, the code checks for a menu item of add-on and removes if already exists, then continues with creating a menu item of addon.

In case of TrackGit folder, it removes the folder item instead of add-on menu item, which leads to multiple add-on menu items.

This issue can be fixed if the code finds and removes the add-on menu item instead of folder menu item. Or, just update the add-on menu instead of removing and creating every time.