Skip to content
Snippets Groups Projects
Commit c38261af authored by Harry Linrui XU's avatar Harry Linrui XU
Browse files

Delete budget project folder if the budget creation process is terminated halfway

parent f7d2039d
No related branches found
No related tags found
1 merge request!43Merging frontend-testing into master
......@@ -315,6 +315,8 @@ public class BudgetController extends FinanceController {
loader.setLocation(getClass().getResource("/view/dualList.fxml"));
} else if (event.getSource() == returnBtn) {
loader.setLocation(getClass().getResource("/view/FirstMenu.fxml"));
FileHandlingBudgetArchive.deleteBudgetDirectory(FileHandlingSelectedBudget.readSelectedBudget());
FileHandlingSelectedBudget.clearSelectedBudget();
}
saveDataToFile();
Parent root = loader.load();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment