Skip to content

armgit / kokon

Public Imported from GitHub
0

Edit photos by describing the change, on your own GPU. A free, open-source alternative to Nano Banana and ChatGPT image editing: photos stay on your computer, no daily limit. One installer for Windows, Mac and Linux sets up the best open model (Qwen-Image 2.1). MCP server for AI agents.

Revert: Try it turns the Mac engine on and stays where it is (Gabriele preferred it)

Gabriele Lozuponeee0f943b5b46
diff --git a/src/components/MacEngineOffer.tsx b/src/components/MacEngineOffer.tsx
index febd63d..3500029 100644
--- a/src/components/MacEngineOffer.tsx
+++ b/src/components/MacEngineOffer.tsx
@@ -1,7 +1,7 @@
import { Activity, RotateCcw, Zap } from "lucide-react";
import { useEffect } from "react";
import { api } from "../lib/api";
-import { openSettings, refreshStatus, setState, toastError, toastInfo } from "../lib/store";
+import { refreshStatus, setState, toastError, toastInfo } from "../lib/store";
import { KokonMark } from "./Welcome";
const POINTS = [
@@ -23,8 +23,7 @@ const POINTS = [
];
/** Once, at start on a Mac (after Setup or What's new): Kokon's own engine, experimental and off by default. The
- * model loads after the answer, on the engine chosen; "Try it" ends in Settings → Performance, where the switch and the
- * Benchmark button are. */
+ * model loads after the answer, on the engine chosen. */
export function MacEngineOffer() {
const answer = async (on: boolean) => {
setState({ overlay: null });
@@ -32,11 +31,7 @@ export function MacEngineOffer() {
const cfg = await api.config();
const ui = { ...((cfg.ui ?? {}) as Record<string, unknown>), macEngineOffered: true };
await api.saveConfig({ ...cfg, macEngine: on || !!cfg.macEngine, ui });
- // Opened after the save: Settings reads the saved config, so the switch shows on.
- if (on) {
- openSettings("performance");
- toastInfo("Kokon's Mac engine is on. Switch it off here any time; Benchmark this Mac is below.");
- }
+ if (on) toastInfo("Kokon's Mac engine is on. Switch back any time in Settings → Performance.");
} catch (e) {
toastError(e);
}