Просмотр исходного кода

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
Jaime van Kessel 3 лет назад
Родитель
Сommit
512b0a1dbe
1 измененных файлов с 0 добавлено и 6 удалено
  1. 0 6
      resources/qml/Widgets/ComboBox.qml

+ 0 - 6
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