codecentric / NSMenuFX

Other
127 stars 26 forks source link

Only update stages with actual changes #34

Closed jkaving closed 4 years ago

jkaving commented 4 years ago

Instead of always updating stages with

  stages.setAll(newStages)

we now only update stages with the actual changes.

We first remove any removed stages and then add any newly created stages.

This avoids resetting the menubar on all stages when e.g. showing popup windows and thereby avoids flickering of the menubar.

Fixes #33