From c6dd4a4e972aae03f469fd88fbcdae37b8a96c13 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 22 Feb 2025 15:25:09 +1100 Subject: use state --- app.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app.tsx') diff --git a/app.tsx b/app.tsx index 113644e..17bbeea 100644 --- a/app.tsx +++ b/app.tsx @@ -12,8 +12,8 @@ import { App } from "astal/gtk3"; const loadStyleAsync = async () => { let schemeColours; - if (GLib.file_test(`${CACHE}/scheme/current.txt`, GLib.FileTest.EXISTS)) { - const currentScheme = await readFileAsync(`${CACHE}/scheme/current.txt`); + if (GLib.file_test(`${STATE}/scheme/current.txt`, GLib.FileTest.EXISTS)) { + const currentScheme = await readFileAsync(`${STATE}/scheme/current.txt`); schemeColours = currentScheme .split("\n") .map(l => { @@ -32,7 +32,7 @@ App.start({ main() { const now = Date.now(); loadStyleAsync().catch(console.error); - monitorFile(`${CACHE}/scheme/current.txt`, () => loadStyleAsync().catch(console.error)); + monitorFile(`${STATE}/scheme/current.txt`, () => loadStyleAsync().catch(console.error)); ; ; -- cgit v1.2.3-freya