Q198: connector errors are shown whole and can be copied
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9aa9a2aee7
commit
27d4ec3be3
10 files changed
+52
-65
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { bumpDataVersion, currentDataVersion } from "../services/data-version";
|
||||
import { createIpcGate } from "./ipc-gate";
|
||||
import { app, dialog, shell, type BrowserWindow } from "electron";
|
||||
import { app, dialog, shell, type BrowserWindow, clipboard } from "electron";
|
||||
import type { DatabaseConnection } from "../database/connection";
|
||||
import { IPC_CHANNELS } from "../../shared/ipc";
|
||||
import { fail, ok, type DesktopResult } from "../../shared/result";
|
||||
@@ -159,6 +159,10 @@ export function registerIpcHandlers(deps: IpcDeps): void {
|
||||
}
|
||||
});
|
||||
handle("completeSetup", (input) => mutate(() => completeSetup(deps.connection.db, input.orgId)));
|
||||
handle("copyText", (input) => {
|
||||
clipboard.writeText(input.text);
|
||||
return ok(null);
|
||||
});
|
||||
handle("saveViewState", (input) => {
|
||||
try {
|
||||
saveViewState(deps.connection.db, input.key, input.value);
|
||||
|
||||
Reference in new issue
Block a user