From 512b0a1dbe2a0272e43a94eb97733576337e2f55 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 8 Oct 2021 18:17:18 +0200 Subject: [PATCH] Remove unneeded catalog The catalog was created over and over again even though it wasn't needed. On my machine this took 0.25 seconds, so it does add up --- resources/qml/Widgets/ComboBox.qml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/resources/qml/Widgets/ComboBox.qml b/resources/qml/Widgets/ComboBox.qml index f0ee3bdc00..36288f0f4f 100644 --- a/resources/qml/Widgets/ComboBox.qml +++ b/resources/qml/Widgets/ComboBox.qml @@ -15,12 +15,6 @@ ComboBox { id: control - UM.I18nCatalog - { - id: catalog - name: "cura" - } - property var defaultTextOnEmptyModel: catalog.i18nc("@label", "No items to select from") // Text displayed in the combobox when the model is empty property var defaultTextOnEmptyIndex: "" // Text displayed in the combobox when the model has items but no item is selected enabled: delegateModel.count > 0