kingkont 0.8.3 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/renderer/board.js +8 -1
package/package.json
CHANGED
package/renderer/board.js
CHANGED
|
@@ -694,7 +694,14 @@ async function closeProject() {
|
|
|
694
694
|
|
|
695
695
|
// =================== Sidebar ===================
|
|
696
696
|
async function refreshSidebar() {
|
|
697
|
-
|
|
697
|
+
// Каждый sub-refresh обёрнут в try чтобы один failed list не валил
|
|
698
|
+
// остальные. Раньше Promise.all reject'ился на первой ошибке, и при
|
|
699
|
+
// повторном открытии проекта sidebar мог остаться полупустым.
|
|
700
|
+
await Promise.allSettled([
|
|
701
|
+
refreshCharacters().catch(e => vlog('err', 'refreshCharacters: ' + (e?.message || e))),
|
|
702
|
+
refreshLocations().catch(e => vlog('err', 'refreshLocations: ' + (e?.message || e))),
|
|
703
|
+
refreshEpisodes().catch(e => vlog('err', 'refreshEpisodes: ' + (e?.message || e))),
|
|
704
|
+
]);
|
|
698
705
|
}
|
|
699
706
|
|
|
700
707
|
function makeBoardItem(it, kind) {
|