From 9df38b062820ac7924ea85ba2ec3f6d0ab8dd02c Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Sun, 29 Nov 2020 11:04:31 +0100 Subject: [PATCH] WIP --- lib/alexandria/ui/smart_library_properties_dialog_base.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/alexandria/ui/smart_library_properties_dialog_base.rb b/lib/alexandria/ui/smart_library_properties_dialog_base.rb index 9508f4ea..1fb9faab 100644 --- a/lib/alexandria/ui/smart_library_properties_dialog_base.rb +++ b/lib/alexandria/ui/smart_library_properties_dialog_base.rb @@ -112,7 +112,8 @@ def user_confirms_possible_weirdnesses_before_saving? def update_rules_header_box(predicate_operator_rule = SmartLibrary::ALL_RULES) @rules_header_box.children&.each { |x| @rules_header_box.remove(x) } - if @rules_box.children.length > 1 + # FIXME: Length should just work!? + if @rules_box.children.to_a.length > 1 label1 = Gtk::Label.new label1.set_alignment(0.0, 0.5) label1.text = _("Match")