mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fix incorrect handling of errors during init
Closes #600. I stumbled across this issue quite by accident while working on something else!
This commit is contained in:
@@ -229,13 +229,16 @@
|
||||
dom.setGameMenuItems(loot.settings.games);
|
||||
dom.updateEnabledGames(loot.installedGames);
|
||||
dom.updateSelectedGame(loot.game.folder);
|
||||
}).then(getInitErrors)
|
||||
})
|
||||
.catch(handlePromiseError)
|
||||
.then(getInitErrors)
|
||||
.then(() => setGameData(loot))
|
||||
.catch(handleInitErrors)
|
||||
.then(() => {
|
||||
if (loot.settings.lastVersion !== loot.version) {
|
||||
dom.openDialog('firstRun');
|
||||
}
|
||||
}).catch(handlePromiseError);
|
||||
})
|
||||
.catch(handlePromiseError);
|
||||
};
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user