0.24.0.dev-rc6

This commit is contained in:
vorotamoroz
2024-10-22 10:08:20 +01:00
parent 6d244a6e34
commit 5b4ae37030
5 changed files with 15 additions and 5 deletions

View File

@@ -32,9 +32,12 @@ export class JsonResolveModal extends Modal {
this.hideLocal = hideLocal ?? false;
void waitForSignal(`cancel-internal-conflict:${filename}`).then(() => this.close());
}
async UICallback(keepRev?: string, mergedStr?: string) {
if (this.callback) {
await this.callback(keepRev, mergedStr);
}
this.close();
await this.callback?.(keepRev, mergedStr);
this.callback = undefined;
}