mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 18:27:23 +02:00
[core] NodeChunk: global notification for all status changes and no more separate notification for execMode
This commit is contained in:
parent
44ec6f0be7
commit
299d8f29df
1 changed files with 3 additions and 7 deletions
|
@ -319,7 +319,6 @@ class NodeChunk(BaseObject):
|
||||||
# Notify update in filepaths when node's internal folder changes
|
# Notify update in filepaths when node's internal folder changes
|
||||||
self.node.internalFolderChanged.connect(self.nodeFolderChanged)
|
self.node.internalFolderChanged.connect(self.nodeFolderChanged)
|
||||||
|
|
||||||
self.execModeNameChanged.connect(self.node.globalExecModeChanged)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def index(self):
|
def index(self):
|
||||||
|
@ -418,7 +417,6 @@ class NodeChunk(BaseObject):
|
||||||
|
|
||||||
if execMode is not None:
|
if execMode is not None:
|
||||||
self._status.execMode = execMode
|
self._status.execMode = execMode
|
||||||
self.execModeNameChanged.emit()
|
|
||||||
self._status.status = newStatus
|
self._status.status = newStatus
|
||||||
self.upgradeStatusFile()
|
self.upgradeStatusFile()
|
||||||
|
|
||||||
|
@ -570,8 +568,7 @@ class NodeChunk(BaseObject):
|
||||||
statusChanged = Signal()
|
statusChanged = Signal()
|
||||||
status = Property(Variant, lambda self: self._status, notify=statusChanged)
|
status = Property(Variant, lambda self: self._status, notify=statusChanged)
|
||||||
statusName = Property(str, statusName.fget, notify=statusChanged)
|
statusName = Property(str, statusName.fget, notify=statusChanged)
|
||||||
execModeNameChanged = Signal()
|
execModeName = Property(str, execModeName.fget, notify=statusChanged)
|
||||||
execModeName = Property(str, execModeName.fget, notify=execModeNameChanged)
|
|
||||||
statisticsChanged = Signal()
|
statisticsChanged = Signal()
|
||||||
|
|
||||||
nodeFolderChanged = Signal()
|
nodeFolderChanged = Signal()
|
||||||
|
@ -1596,9 +1593,8 @@ class BaseNode(BaseObject):
|
||||||
isCompatibilityNode = Property(bool, lambda self: self._isCompatibilityNode(), constant=True)
|
isCompatibilityNode = Property(bool, lambda self: self._isCompatibilityNode(), constant=True)
|
||||||
isInputNode = Property(bool, lambda self: self._isInputNode(), constant=True)
|
isInputNode = Property(bool, lambda self: self._isInputNode(), constant=True)
|
||||||
|
|
||||||
globalExecModeChanged = Signal()
|
globalExecMode = Property(str, globalExecMode.fget, notify=globalStatusChanged)
|
||||||
globalExecMode = Property(str, globalExecMode.fget, notify=globalExecModeChanged)
|
isExternal = Property(bool, isExtern, notify=globalStatusChanged)
|
||||||
isExternal = Property(bool, isExtern, notify=globalExecModeChanged)
|
|
||||||
isComputed = Property(bool, _isComputed, notify=globalStatusChanged)
|
isComputed = Property(bool, _isComputed, notify=globalStatusChanged)
|
||||||
isComputable = Property(bool, _isComputable, notify=globalStatusChanged)
|
isComputable = Property(bool, _isComputable, notify=globalStatusChanged)
|
||||||
aliveChanged = Signal()
|
aliveChanged = Signal()
|
||||||
|
|
Loading…
Add table
Reference in a new issue