darkhz / bluetuith

A TUI bluetooth manager for Linux.
MIT License
850 stars 21 forks source link

Order of help menu sections is not deterministic #49

Closed jackkinsey closed 5 months ago

jackkinsey commented 5 months ago

Repeatedly opening and closing the help menu, I notice that every so often the sections are ordered differently from what appears to be the default/normal/correct order.

So, e.g., instead of:

image

I might get something like this:

image

This is obviously not a big deal at all, but I thought it was curious. Love the application!

darkhz commented 5 months ago

Yes, this is expected. To be more technical, all the help items are stored in a map, and as such the items are unordered and will produce different output every time the map is accessed. I didn't think it was important to maintain the order of the elements, and hence the random arrangement of the items.