diff --git a/apps/main/src/lib/cleaner.ts b/apps/main/src/lib/cleaner.ts index eb0d418c48..bfeeb3628e 100644 --- a/apps/main/src/lib/cleaner.ts +++ b/apps/main/src/lib/cleaner.ts @@ -7,6 +7,7 @@ import { promisify } from "node:util" import { callWindowExpose } from "@follow/shared/bridge" import { app, dialog } from "electron" +import { getIconPath } from "~/helper" import { logger } from "~/logger" import { getMainWindow } from "~/window" @@ -23,9 +24,10 @@ export const clearAllDataAndConfirm = async () => { // Dialog to confirm const result = await dialog.showMessageBox({ type: "warning", - + icon: getIconPath(), message: t("dialog.clearAllData"), buttons: [t("dialog.yes"), t("dialog.no")], + cancelId: 1, }) if (result.response === 1) {