Fixed new actions not saving

This commit is contained in:
Tamius Han 2019-05-05 00:39:36 +02:00
parent 2e6a2dd92a
commit a783c75b98
2 changed files with 4 additions and 1 deletions

View File

@ -143,7 +143,7 @@ class Scaler {
videoDimensions.yFactor = videoDimensions.xFactor; videoDimensions.yFactor = videoDimensions.xFactor;
} }
if(Debug.debug){ if (Debug.debug && Debug.scaler) {
console.log("[Scaler::calculateCrop] Crop factor calculated — ", videoDimensions.xFactor); console.log("[Scaler::calculateCrop] Crop factor calculated — ", videoDimensions.xFactor);
} }

View File

@ -219,6 +219,9 @@ export default {
this.action = JSON.parse(JSON.stringify(this.action)); this.action = JSON.parse(JSON.stringify(this.action));
}, },
saveSettings() { saveSettings() {
if (this.currentCmdIndex < 0) {
this.settings.active.actions.push(this.action);
}
this.settings.save(); this.settings.save();
this.close(); this.close();
}, },