Skip to content

Commit

Permalink
Simplified removing empty instance dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek2010 committed Jan 31, 2025
1 parent 73f00b1 commit 6ada08d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,6 @@ private void setupViewModels(FormEntryViewModelFactory formEntryViewModelFactory

identityPromptViewModel.isFormEntryCancelled().observe(this, isFormEntryCancelled -> {
if (isFormEntryCancelled) {
identityPromptViewModel.exit();
exit();
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public void done() {
}

public void promptDismissed() {
FileUtils.purgeMediaPath(instanceFolder);
formEntryCancelled.setValue(true);
}

Expand All @@ -75,8 +76,4 @@ private static boolean userIsValid(String user) {
public String getFormTitle() {
return formName;
}

public void exit() {
FileUtils.purgeMediaPath(instanceFolder);
}
}

0 comments on commit 6ada08d

Please sign in to comment.