Fix presets

10.8-maintenance
Mark Haslinghuis 2022-05-26 01:53:15 +02:00
parent d92a49aac8
commit 3ea9d15583
1 changed files with 5 additions and 3 deletions

View File

@ -333,12 +333,14 @@ TABS.presets.multipleSelectComponentScrollFix = function() {
};
TABS.presets.checkPresetSourceVersion = function() {
const self = this;
return new Promise((resolve, reject) => {
if (this.majorVersion === this.presetsRepo.index.majorVersion) {
if (self.majorVersion === self.presetsRepo.index.majorVersion) {
resolve();
} else {
const versionRequired = `${this.majorVersion}.X`;
const versionSource = `${this.presetsRepo.index.majorVersion}.${this.presetsRepo.index.minorVersion}`;
const versionRequired = `${self.majorVersion}.X`;
const versionSource = `${self.presetsRepo.index.majorVersion}.${self.presetsRepo.index.minorVersion}`;
const dialogSettings = {
title: i18n.getMessage("presetsWarningDialogTitle"),