mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Show that a value is being calculated instead of showing "QVariant..."
CURA-1668
This commit is contained in:
parent
7d2a7bd157
commit
2287c2daa6
1 changed files with 6 additions and 1 deletions
|
@ -5,6 +5,7 @@ from PyQt5.QtCore import pyqtProperty, Qt, pyqtSignal, pyqtSlot, QUrl
|
|||
|
||||
from UM.Settings.ContainerRegistry import ContainerRegistry
|
||||
from UM.Settings.InstanceContainer import InstanceContainer
|
||||
from UM.Settings.SettingFunction import SettingFunction
|
||||
|
||||
class ContainerSettingsModel(ListModel):
|
||||
LabelRole = Qt.UserRole + 1
|
||||
|
@ -53,7 +54,11 @@ class ContainerSettingsModel(ListModel):
|
|||
while category.type != "category":
|
||||
category = category.parent
|
||||
|
||||
values.append(container.getProperty(key, "value"))
|
||||
value = container.getProperty(key, "value")
|
||||
if type(value) == SettingFunction:
|
||||
values.append("=\u0192")
|
||||
else:
|
||||
values.append(container.getProperty(key, "value"))
|
||||
else:
|
||||
values.append("")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue