diff --git a/bottles/frontend/ui/new-bottle-dialog.blp b/bottles/frontend/ui/new-bottle-dialog.blp index 0048e8ef850..7e48b1d564c 100644 --- a/bottles/frontend/ui/new-bottle-dialog.blp +++ b/bottles/frontend/ui/new-bottle-dialog.blp @@ -60,8 +60,6 @@ template $BottlesNewBottleDialog: Adw.Dialog { } Adw.PreferencesGroup { - title: _("Environment"); - ListBox environment_list_box { selection-mode: none; @@ -99,8 +97,13 @@ template $BottlesNewBottleDialog: Adw.Dialog { } Adw.PreferencesGroup { - title: _("Custom"); - sensitive: bind custom.active; + Adw.ComboRow combo_arch { + title: _("Architecture"); + subtitle: _("32-bit should only be used if strictly necessary."); + visible: bind custom.active; + + model: StringList str_list_arch {}; + } Adw.ComboRow combo_runner { title: _("Runner"); @@ -109,19 +112,12 @@ template $BottlesNewBottleDialog: Adw.Dialog { model: StringList str_list_runner {}; } - Adw.ComboRow combo_arch { - title: _("Architecture"); - subtitle: _("32-bit should only be used if strictly necessary."); - - model: StringList str_list_arch {}; - } - Adw.ActionRow { - title: _("Configuration"); - subtitle: _("Import a custom configuration."); - activatable-widget: btn_choose_env; + title: _("Bottle Directory"); + subtitle: _("Directory that will contain the data of this bottle."); + activatable-widget: btn_choose_path; - Button btn_choose_env_reset { + Button btn_choose_path_reset { tooltip-text: _("Reset to Default"); valign: center; visible: false; @@ -132,7 +128,7 @@ template $BottlesNewBottleDialog: Adw.Dialog { ] } - Button btn_choose_env { + Button btn_choose_path { valign: center; child: Box { @@ -142,17 +138,18 @@ template $BottlesNewBottleDialog: Adw.Dialog { icon-name: "document-open-symbolic"; } - Label label_choose_env {} + Label label_choose_path {} }; } } Adw.ActionRow { - title: _("Bottle Directory"); - subtitle: _("Directory that will contain the data of this bottle."); - activatable-widget: btn_choose_path; + title: _("Configuration"); + subtitle: _("Import a custom configuration."); + activatable-widget: btn_choose_env; + visible: bind custom.active; - Button btn_choose_path_reset { + Button btn_choose_env_reset { tooltip-text: _("Reset to Default"); valign: center; visible: false; @@ -163,7 +160,7 @@ template $BottlesNewBottleDialog: Adw.Dialog { ] } - Button btn_choose_path { + Button btn_choose_env { valign: center; child: Box { @@ -173,7 +170,7 @@ template $BottlesNewBottleDialog: Adw.Dialog { icon-name: "document-open-symbolic"; } - Label label_choose_path {} + Label label_choose_env {} }; } } diff --git a/bottles/frontend/views/new_bottle_dialog.py b/bottles/frontend/views/new_bottle_dialog.py index 35ea3a33e73..cff2ea7c874 100644 --- a/bottles/frontend/views/new_bottle_dialog.py +++ b/bottles/frontend/views/new_bottle_dialog.py @@ -193,10 +193,7 @@ def create_bottle(self, *_args: Any) -> None: self.set_can_close(False) self.stack_create.set_visible_child_name("page_creating") - if self.selected_environment == "active": - self.runner = self.manager.runners_available[ - self.combo_runner.get_selected() - ] + self.runner = self.manager.runners_available[self.combo_runner.get_selected()] RunAsync( task_func=self.manager.create_bottle,