From a783c75b98d34694486fd68e637bfbfb9d780f95 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 5 May 2019 00:39:36 +0200 Subject: [PATCH] Fixed new actions not saving --- src/ext/lib/video-transform/Scaler.js | 2 +- src/options/controls-settings/AddEditActionPopup.vue | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ext/lib/video-transform/Scaler.js b/src/ext/lib/video-transform/Scaler.js index 5927c02..b3b4739 100644 --- a/src/ext/lib/video-transform/Scaler.js +++ b/src/ext/lib/video-transform/Scaler.js @@ -143,7 +143,7 @@ class Scaler { videoDimensions.yFactor = videoDimensions.xFactor; } - if(Debug.debug){ + if (Debug.debug && Debug.scaler) { console.log("[Scaler::calculateCrop] Crop factor calculated — ", videoDimensions.xFactor); } diff --git a/src/options/controls-settings/AddEditActionPopup.vue b/src/options/controls-settings/AddEditActionPopup.vue index 2787193..6f2e12e 100644 --- a/src/options/controls-settings/AddEditActionPopup.vue +++ b/src/options/controls-settings/AddEditActionPopup.vue @@ -219,6 +219,9 @@ export default { this.action = JSON.parse(JSON.stringify(this.action)); }, saveSettings() { + if (this.currentCmdIndex < 0) { + this.settings.active.actions.push(this.action); + } this.settings.save(); this.close(); },