On Mon Nov 3 16:53:52 2025 +0000, Esme Povirk wrote:
Hm, that would be O(n**2) in normal cases though. We could do better: 1. Check all parameter values. Change those that are configured differently from their current state. Note the last index changed. 2. As long as at least one change was needed, repeat step 1, but only for parameters with index before the last one changed. 3. Load the values into the dialog. That could still fail for complicated dependency graphs. I guess there's no general solution with a reasonable runtime that we can be sure will terminate.
Maybe if option names are relatively consistent between devices, we could just hard-code some ordering rules for the ones that have been known to do this? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9184#note_120558