Fix bugged config index selection

This commit is contained in:
Daniel Johnson 2022-12-17 09:19:27 -05:00 committed by Mathieu Comandon
parent e6b667bb99
commit 2fb0b41251

View file

@ -463,7 +463,8 @@ class Game(GObject.Object):
elif preferred_launch_command_name:
for index, config in enumerate(configs):
if config.get("name") == preferred_launch_command_name:
config_index = index
config_index = index + 1
break
if config_index is None:
dlg = dialogs.LaunchConfigSelectDialog(self, configs)