menumanager: fix right click/swap issues (#866)

* menumanager: fix possible concurrent modification exception, add small
optimization for left click entries, and cleanup

* menumanager: stop entries from swapping in the right click menu if the
swapFrom is already the first option

* Revert "rsclientmixin: make use of edited menuopened event variables"

This reverts commit d2cd11a7

* menumanager: set event entries in menuopened event to prevent conflicts

* menumanager: remove type change, and improve performance

* menumanager: add field to set priority level to prevent conflicts
This commit is contained in:
se7enAte9
2019-07-04 23:18:26 -04:00
committed by Ganom
parent 6f9440d5bb
commit 1e6a5df6de
4 changed files with 110 additions and 183 deletions

View File

@@ -1304,7 +1304,6 @@ public abstract class RSClientMixin implements RSClient
final MenuOpened event = new MenuOpened();
event.setMenuEntries(getMenuEntries());
callbacks.post(event);
client.setMenuEntries(event.getMenuEntries());
}
@Inject