mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 23:16:06 +08:00
Merge branch '2.1' of https://github.com/Ultimaker/Cura into 2.1
This commit is contained in:
commit
a334e8876d
@ -167,12 +167,16 @@ class LayerView(View):
|
|||||||
|
|
||||||
if new_max_layers > 0 and new_max_layers != self._old_max_layers:
|
if new_max_layers > 0 and new_max_layers != self._old_max_layers:
|
||||||
self._max_layers = new_max_layers
|
self._max_layers = new_max_layers
|
||||||
self.maxLayersChanged.emit()
|
|
||||||
self._current_layer_num = self._max_layers
|
|
||||||
|
|
||||||
# This makes sure we update the current layer
|
# The qt slider has a bit of weird behavior that if the maxvalue needs to be changed first
|
||||||
self.setLayer(int(self._max_layers))
|
# if it's the largest value. If we don't do this, we can have a slider block outside of the
|
||||||
self.currentLayerNumChanged.emit()
|
# slider.
|
||||||
|
if new_max_layers > self._current_layer_num:
|
||||||
|
self.maxLayersChanged.emit()
|
||||||
|
self.setLayer(int(self._max_layers))
|
||||||
|
else:
|
||||||
|
self.setLayer(int(self._max_layers))
|
||||||
|
self.maxLayersChanged.emit()
|
||||||
|
|
||||||
maxLayersChanged = Signal()
|
maxLayersChanged = Signal()
|
||||||
currentLayerNumChanged = Signal()
|
currentLayerNumChanged = Signal()
|
||||||
|
@ -59,16 +59,13 @@ UM.PreferencesPage
|
|||||||
id: languageList
|
id: languageList
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
// append({ text: catalog.i18nc("@item:inlistbox", "Bulgarian"), code: "bg" })
|
|
||||||
// append({ text: catalog.i18nc("@item:inlistbox", "Czech"), code: "cs" })
|
|
||||||
append({ text: catalog.i18nc("@item:inlistbox", "English"), code: "en" })
|
append({ text: catalog.i18nc("@item:inlistbox", "English"), code: "en" })
|
||||||
append({ text: catalog.i18nc("@item:inlistbox", "Finnish"), code: "fi" })
|
append({ text: catalog.i18nc("@item:inlistbox", "Finnish"), code: "fi" })
|
||||||
append({ text: catalog.i18nc("@item:inlistbox", "French"), code: "fr" })
|
append({ text: catalog.i18nc("@item:inlistbox", "French"), code: "fr" })
|
||||||
append({ text: catalog.i18nc("@item:inlistbox", "German"), code: "de" })
|
append({ text: catalog.i18nc("@item:inlistbox", "German"), code: "de" })
|
||||||
// append({ text: catalog.i18nc("@item:inlistbox", "Italian"), code: "it" })
|
append({ text: catalog.i18nc("@item:inlistbox", "Italian"), code: "it" })
|
||||||
append({ text: catalog.i18nc("@item:inlistbox", "Polish"), code: "pl" })
|
append({ text: catalog.i18nc("@item:inlistbox", "Dutch"), code: "nl" })
|
||||||
// append({ text: catalog.i18nc("@item:inlistbox", "Russian"), code: "ru" })
|
append({ text: catalog.i18nc("@item:inlistbox", "Spanish"), code: "es" })
|
||||||
// append({ text: catalog.i18nc("@item:inlistbox", "Spanish"), code: "es" })
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user