Disable auto-update setting & settings page has scroll shortcuts (#590)

Fixes https://github.com/dyad-sh/dyad/issues/561
This commit is contained in:
Will Chen
2025-07-07 15:43:06 -07:00
committed by GitHub
parent bc38f9b2d7
commit ab6a9d3b34
28 changed files with 526 additions and 136 deletions

View File

@@ -1,4 +1,4 @@
import { ipcMain } from "electron";
import { ipcMain, app } from "electron";
import { db, getDatabasePath } from "../../db";
import { apps, chats } from "../../db/schema";
import { desc, eq } from "drizzle-orm";
@@ -186,6 +186,11 @@ async function killProcessOnPort(port: number): Promise<void> {
}
export function registerAppHandlers() {
handle("restart-dyad", async () => {
app.relaunch();
app.quit();
});
handle(
"create-app",
async (

View File

@@ -165,6 +165,10 @@ export class IpcClient {
return IpcClient.instance;
}
public async restartDyad(): Promise<void> {
await this.ipcRenderer.invoke("restart-dyad");
}
public async reloadEnvPath(): Promise<void> {
await this.ipcRenderer.invoke("reload-env-path");
}