From ef888036dc2309d95e67dfd09f52ac7f0018139c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Mon, 16 Feb 2026 16:16:01 -0800 Subject: [PATCH] SourceDialog: only pack type_box when needed --- src/SourceDialog/SourceDialog.vala | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/SourceDialog/SourceDialog.vala b/src/SourceDialog/SourceDialog.vala index 93d8ba56d..a72f2a12f 100644 --- a/src/SourceDialog/SourceDialog.vala +++ b/src/SourceDialog/SourceDialog.vala @@ -108,11 +108,6 @@ public class Maya.View.SourceDialog : Granite.Dialog { list_store.set (iter, 0, backend.get_name (), 1, backend); } - if (backends_manager.backends.size <= 1) { - type_combobox.no_show_all = true; - type_label.no_show_all = true; - } - type_combobox.set_active (0); color_button_blue = new Gtk.RadioButton (null) { @@ -259,7 +254,11 @@ public class Maya.View.SourceDialog : Granite.Dialog { margin_start = 12, vexpand = true }; - main_box.add (type_box); + + if (backends_manager.backends.size > 1) { + main_box.add (type_box); + } + main_box.add (name_box); main_box.add (color_box); main_box.add (is_default_check);