🪲 Fix profile migration
This commit is contained in:
+6
-2
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user