diff --git a/lib/src/widgets/home_page/home_page_button_group.dart b/lib/src/widgets/home_page/home_page_button_group.dart index 4b55e8d..ff05f22 100644 --- a/lib/src/widgets/home_page/home_page_button_group.dart +++ b/lib/src/widgets/home_page/home_page_button_group.dart @@ -37,13 +37,21 @@ class _HomePageButtonGroupState extends State { text: _selectedOperatingSystem?.name ?? context.t('Select...'), onPressed: () { Navigator.of(context) - .push(MaterialPageRoute(fullscreenDialog: true, builder: (context) => const OperatingSystemSelection())) + .push(MaterialPageRoute( + fullscreenDialog: true, + builder: (context) => const OperatingSystemSelection())) .then((selection) { if (selection != null) { setState(() { _selectedOperatingSystem = selection; - _selectedVersion = null; - _selectedOption = null; + if (selection.versions.length == 1 && + selection.versions.first.options.length == 1) { + _selectedVersion = selection.versions.first; + _selectedOption = selection.versions.first.options.first; + } else { + _selectedVersion = null; + _selectedOption = null; + } }); } });