🔧 Do not attempt to migrate anything if on a new installation

This commit is contained in:
Simon Schneegans
2023-02-21 19:44:13 +01:00
parent b93d28e66c
commit edd6d76a58
+6
View File
@@ -27,6 +27,12 @@ async function fromVersion26() {
.executeCommand(['dconf', 'dump', '/org/gnome/shell/extensions/burn-my-windows/'])
.catch(r => utils.debug('Failed to get old settings for effect migration: ' + r))
.then(r => {
// If there were no settings before, we do not have to migrate anything. Just use
// the new defaults.
if (r == '') {
return;
}
utils.debug('Starting Burn-My-Windows profile migration (old version <= 26)!');
// We use this to write the new profiles.