🪲 Fix profile migration

This commit is contained in:
Simon Schneegans
2023-02-10 06:15:22 +01:00
parent 543cf7de09
commit 4b6b6f359d
+6 -2
View File
@@ -189,8 +189,8 @@ async function fromVersion26() {
} else { } else {
const openProfileLines = [...profile, 'profile-animation-type=1']; const openProfileLines = [...profileLines, 'profile-animation-type=1'];
const closeProfileLines = [...profile, 'profile-animation-type=2']; const closeProfileLines = [...profileLines, 'profile-animation-type=2'];
// Add all relevant effects. // Add all relevant effects.
openEffects.forEach(e => openProfileLines.push(e + '-enable-effect=true')); openEffects.forEach(e => openProfileLines.push(e + '-enable-effect=true'));
@@ -202,6 +202,10 @@ async function fromVersion26() {
closeProfileLines.push('fire-enable-effect=false'); closeProfileLines.push('fire-enable-effect=false');
} }
if (!openEffects.includes('fire')) {
openProfileLines.push('fire-enable-effect=false');
}
// Print and save the new profiles. // Print and save the new profiles.
const openProfile = openProfileLines.join('\n'); const openProfile = openProfileLines.join('\n');
const closeProfile = closeProfileLines.join('\n'); const closeProfile = closeProfileLines.join('\n');