Disable auto-update setting & settings page has scroll shortcuts (#590)
Fixes https://github.com/dyad-sh/dyad/issues/561
This commit is contained in:
@@ -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 (
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user