mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 06:35:55 +08:00
Ease of use; each backend-plugin can now provide additional settings.
Any overriding cals that does so, should just add 'self.definition_file_paths' to load their additional settings. However, at the moment of this commit, you should still suppy setting_definitions_appender in the list of __init__.register for the plugin. part of CURA-10722
This commit is contained in:
parent
c15a53d349
commit
7c810eeca8
@ -4,10 +4,10 @@ import subprocess
|
|||||||
from typing import Optional, List
|
from typing import Optional, List
|
||||||
|
|
||||||
from UM.Logger import Logger
|
from UM.Logger import Logger
|
||||||
from UM.PluginObject import PluginObject
|
from UM.Settings.AdditionalSettingDefinitionAppender import AdditionalSettingDefinitionsAppender
|
||||||
|
|
||||||
|
|
||||||
class BackendPlugin(PluginObject):
|
class BackendPlugin(AdditionalSettingDefinitionsAppender):
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.__port: int = 0
|
self.__port: int = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user