[ui] Add MESHROOM_USE_SEQUENCE_PLAYER environment variable

This commit is contained in:
Aurore LAFAURIE 2024-07-09 16:31:11 +02:00
parent e450a40faa
commit a43117b298
3 changed files with 7 additions and 2 deletions

View file

@ -463,6 +463,9 @@ class MeshroomApp(QApplication):
def _default8bitViewerEnabled(self):
return bool(os.environ.get("MESHROOM_USE_8BIT_VIEWER", False))
def _defaultSequencePlayerEnabled(self):
return bool(os.environ.get("MESHROOM_USE_SEQUENCE_PLAYER", False))
activeProjectChanged = Signal()
activeProject = Property(Variant, lambda self: self._activeProject, notify=activeProjectChanged)
@ -476,3 +479,4 @@ class MeshroomApp(QApplication):
recentProjectFiles = Property("QVariantList", _recentProjectFiles, notify=recentProjectFilesChanged)
recentImportedImagesFolders = Property("QVariantList", _recentImportedImagesFolders, notify=recentImportedImagesFoldersChanged)
default8bitViewerEnabled = Property(bool, _default8bitViewerEnabled, constant=True)
defaultSequencePlayerEnabled = Property(bool, _defaultSequencePlayerEnabled, constant=True)