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.

Mac engine offer: Try it opens Settings → Performance (the switch on, the Benchmark button)

Gabriele Lozuponededa7125e06c
diff --git a/src/components/MacEngineOffer.tsx b/src/components/MacEngineOffer.tsx
index 3500029..febd63d 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 { refreshStatus, setState, toastError, toastInfo } from "../lib/store";
+import { openSettings, refreshStatus, setState, toastError, toastInfo } from "../lib/store";
import { KokonMark } from "./Welcome";
const POINTS = [
@@ -23,7 +23,8 @@ 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. */
+ * model loads after the answer, on the engine chosen; "Try it" ends in Settings → Performance, where the switch and the
+ * Benchmark button are. */
export function MacEngineOffer() {
const answer = async (on: boolean) => {
setState({ overlay: null });
@@ -31,7 +32,11 @@ 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 });
- if (on) toastInfo("Kokon's Mac engine is on. Switch back any time in Settings → Performance.");
+ // 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.");
+ }
} catch (e) {
toastError(e);
}