Skip to content

status: Used fixed sorting of input sources on empty MRU

Carlos Garnacho requested to merge wip/carlosg/input-sources-order into main

When updating the MRU sources if there was no prior MRU, we want to go with the unmodified list of sources in visibility order.

However, the InputSourceManager._inputSources object holding the available input sources is a set, that makes iterating across it happen in an undetermined order, which makes the initial MRU list pick a value at random.

In order to prefer the sources list in the same order than they appear in the menu if there was no prior MRU, order the keys when accessing it and building the initial list of sources.

Closes: #5873 (closed)

Merge request reports