Skip to content

Commit

Permalink
[MWP-366] chore: add loging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeredian committed Jan 26, 2024
1 parent 3407706 commit bf7a822
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions MachineConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,10 @@ def isPreviewEncoded(self):
@pyqtSlot(str)
def setPreviewEncodeSettings(self, is_preview_encoded):
global_container_stack = Application.getInstance().getGlobalContainerStack()
if global_container_stack:
if global_container_stack:
Logger.log("d", "Is preview encoded: "+ str(is_preview_encoded))
if is_preview_encoded == "true":
global_container_stack.setMetaDataEntry(Constants.IS_PREVIEW_ENCODED, is_preview_encoded)
global_container_stack.setMetaDataEntry(Constants.IS_PREVIEW_ENCODED, is_preview_encoded)
else:
global_container_stack.setMetaDataEntry(Constants.IS_PREVIEW_ENCODED, None)
global_container_stack.removeMetaDataEntry(Constants.IS_PREVIEW_ENCODED)
Expand All @@ -311,7 +312,7 @@ def getScreenshotOptions(self):
@pyqtSlot(str, result="QVariant")
def getScreenshotSettings(self, label):
Logger.log("d", "Get screenshot settings for: "+ label)
result = {"simage": "", "gimage": ''}
result = {"simage": "", "gimage": '', "encoded": False}
options = sorted(self.screenshot_info, key=lambda k: k['index'])
for option in options:
value = option["label"]
Expand Down

0 comments on commit bf7a822

Please sign in to comment.