[Store] Tweak loading screen text for hotupdate

pull/43/head dev
Oj18 3 years ago
parent 26db35d628
commit e1a5b0c8b0

@ -31,10 +31,14 @@ export default {
},
hotupdate: async (shouldHandleLoadingText = false) => { // Update repos, hotreload any updated modules (compare hashes to check if updated)
await goosemodScope.moduleStoreAPI.updateModules(shouldHandleLoadingText);
if (shouldHandleLoadingText) goosemodScope.updateLoadingScreen(`Getting modules from repos...`);
await goosemodScope.moduleStoreAPI.updateModules();
await goosemodScope.moduleStoreAPI.updateStoreSetting();
if (shouldHandleLoadingText) goosemodScope.updateLoadingScreen(`Updating modules...`);
const updatePromises = [];
for (const m in goosemodScope.modules) {
@ -72,14 +76,10 @@ export default {
];
},
updateModules: async (shouldHandleLoadingText = false) => {
updateModules: async () => {
let newModules = [];
goosemodScope.moduleStoreAPI.repos = (await Promise.all(goosemodScope.moduleStoreAPI.repos.map(async (repo) => {
if (shouldHandleLoadingText) {
goosemodScope.updateLoadingScreen(`Getting modules...\n(${repo.url})`);
}
if (!repo.enabled) {
return repo;
}

Loading…
Cancel
Save