Link avalonia ComboBox bug

This commit is contained in:
Babib3l 2026-05-24 19:57:12 +02:00
parent a2025d8465
commit b2573c7ed3

View file

@ -819,8 +819,10 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
if (controllerIndex != -1)
{
// Avalonia bug: setting a newly instanced ComboBox to 0
// causes the selected item to show up blank
// Workaround: set the box to 1 and then 0
// causes the selected item to show up blank.
// Workaround: set the box to 1 and then 0.
// See: https://github.com/AvaloniaUI/Avalonia/issues/4610
// https://github.com/AvaloniaUI/Avalonia/discussions/18834
if (controllerIndex == 0)
{
ApplyControllerSelection(1);