mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Total number of settings is now calculated for open project dialog
CURA-1263
This commit is contained in:
parent
04d268b1fb
commit
c236f7d266
2 changed files with 3 additions and 3 deletions
|
@ -4,6 +4,7 @@ from UM.PluginRegistry import PluginRegistry
|
|||
from UM.Application import Application
|
||||
from UM.Logger import Logger
|
||||
from UM.i18n import i18nCatalog
|
||||
from UM.Settings.ContainerRegistry import ContainerRegistry
|
||||
|
||||
import os
|
||||
import threading
|
||||
|
@ -92,8 +93,7 @@ class WorkspaceDialog(QObject):
|
|||
|
||||
@pyqtProperty(int, constant = True)
|
||||
def totalNumberOfSettings(self):
|
||||
# TODO: actually calculate this.
|
||||
return 200
|
||||
return len(ContainerRegistry.getInstance().findDefinitionContainers(id="fdmprinter")[0].getAllKeys())
|
||||
|
||||
@pyqtProperty(int, notify = numVisibleSettingsChanged)
|
||||
def numVisibleSettings(self):
|
||||
|
|
|
@ -81,7 +81,7 @@ UM.Dialog
|
|||
text: catalog.i18nc("@action:label", "Printer settings")
|
||||
font.bold: true
|
||||
}
|
||||
|
||||
|
||||
Row
|
||||
{
|
||||
width: parent.width
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue