From 558abd13ea638e12ac358eae31953ee7a2ed0228 Mon Sep 17 00:00:00 2001 From: yetone Date: Mon, 5 Oct 2026 02:24:44 +0800 Subject: [PATCH] =?UTF-8?q?site,=20omarchy:=20a=20reload=20shows=20the=20t?= =?UTF-8?q?heme=20the=20page=20showed,=20not=20one=20magpie=20told=20befor?= =?UTF-8?q?e=20the=20desktop=20turned=20(owner:=20=E5=9C=A8=20Omarchy=20?= =?UTF-8?q?=E4=B8=8B=E7=BD=91=E9=A1=B5=E7=9A=84=E7=A1=AE=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=AF=86=E5=88=AB=20Omarchy=20=E4=B8=BB?= =?UTF-8?q?=E9=A2=98=E5=88=87=E6=8D=A2=E4=BA=8B=E4=BB=B6=E4=BA=86=EF=BC=8C?= =?UTF-8?q?=E4=BD=86=E6=98=AF=E4=B8=80=E5=88=B7=E6=96=B0=E5=8F=88=E5=8F=98?= =?UTF-8?q?=E5=9B=9E=E4=BA=86=E9=BB=98=E8=AE=A4=E7=9A=84=20Omarchy=20?= =?UTF-8?q?=E4=B8=BB=E9=A2=98)=20=E2=80=94=20with=20magpie=20not=20answeri?= =?UTF-8?q?ng=20(here=20the=20VM=20had=20restarted=20and=20nothing=20serve?= =?UTF-8?q?d=20127.0.0.1:3425),=20the=20page=20follows=20Omarchy=20only=20?= =?UTF-8?q?by=20light/dark:=20rose-pine=20set=20turned=20it=20to=20catppuc?= =?UTF-8?q?cin-latte,=20but=20localStorage=20still=20held=20miasma,=20the?= =?UTF-8?q?=20theme=20magpie=20had=20last=20told,=20and=20a=20reload=20pai?= =?UTF-8?q?nted=20that.=20Now=20when=20the=20desktop=20turns=20to=20the=20?= =?UTF-8?q?other=20mode=20while=20magpie=20isn't=20answering,=20that=20sta?= =?UTF-8?q?le=20theme=20is=20forgotten,=20so=20a=20reload=20paints=20what?= =?UTF-8?q?=20the=20page=20showed.=20Tried=20in=20the=20Omarchy=20VM=20in?= =?UTF-8?q?=20Chromium=20152=20on=20a=20copy=20of=20the=20owner's=20own=20?= =?UTF-8?q?profile=20(its=20loopback-network=20grant=20and=20storage),=20o?= =?UTF-8?q?marchy.js=20served=20from=20this=20change:=20magpie=20down,=20m?= =?UTF-8?q?iasma=20=E2=86=92=20rose-pine=20turned=20the=20page=20to=20catp?= =?UTF-8?q?puccin-latte=20and=20a=20reload=20kept=20catppuccin-latte=20(it?= =?UTF-8?q?=20went=20back=20to=20miasma=20before);=20magpie=20up,=20rose-p?= =?UTF-8?q?ine=20came=20through=20live=20and=20a=20reload=20kept=20rose-pi?= =?UTF-8?q?ne.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/public/omarchy.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/site/public/omarchy.js b/site/public/omarchy.js index 4d52c884..d3f9df92 100644 --- a/site/public/omarchy.js +++ b/site/public/omarchy.js @@ -246,6 +246,9 @@ light.addEventListener("change", () => { if (!cur || st.pick || status === "live") return; const live = st.live && st.live.mode === scheme() && fromMagpie(st.live); + // the theme magpie last told is off the desktop now: a reload shows + // what this shows, not that one + if (!live && st.live) { delete st.live; save(); } paint(live || builtin(GUESS[scheme()])); }); for (const name of ["loopback-network", "local-network-access"]) {