Fixed false positive plugin highlighting in editor.

This was an existing issue, unrelated to code refactoring, wherea plugin
selecting a plugin could bold the previous plugin's list entry even if
no changes were made. Also fixed incorrect priority values being
displayed on initialisation.