improve cleanup when opening multiple budgets through the API (#5760)

This commit is contained in:
Matt Fiddaman
2025-09-21 17:47:27 +01:00
committed by GitHub
parent 59724d445f
commit cc0812113a
2 changed files with 8 additions and 1 deletions

View File

@@ -206,6 +206,7 @@ async function downloadBudget({
}
const id = result.id;
await closeBudget();
await loadBudget({ id });
result = await syncBudget();
@@ -262,7 +263,7 @@ async function closeBudget() {
sheet.unloadSpreadsheet();
clearFullSyncTimeout();
await app.stopServices();
await mainApp.stopServices();
await db.closeDatabase();

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [matt-fidd]
---
Improve cleanup when opening multiple budgets through the API