Fixes #12
This commit is contained in:
Will Chen
2025-06-05 22:26:17 -07:00
committed by GitHub
parent 97ed34cf08
commit d3fbb48472
18 changed files with 6386 additions and 65 deletions

View File

@@ -31,6 +31,7 @@ import type {
ImportAppParams,
RenameBranchParams,
UserBudgetInfo,
CopyAppParams,
} from "./ipc_types";
import type { ProposalResult } from "@/lib/schemas";
import { showError } from "@/lib/toast";
@@ -465,6 +466,10 @@ export class IpcClient {
});
}
public async copyApp(params: CopyAppParams): Promise<{ app: App }> {
return this.ipcRenderer.invoke("copy-app", params);
}
// Reset all - removes all app files, settings, and drops the database
public async resetAll(): Promise<void> {
await this.ipcRenderer.invoke("reset-all");