mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 20:44:32 -05:00
improve cleanup when opening multiple budgets through the API (#5760)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
6
upcoming-release-notes/5760.md
Normal file
6
upcoming-release-notes/5760.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [matt-fidd]
|
||||
---
|
||||
|
||||
Improve cleanup when opening multiple budgets through the API
|
||||
Reference in New Issue
Block a user