diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-22 15:25:09 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-22 15:25:09 +1100 |
| commit | c6dd4a4e972aae03f469fd88fbcdae37b8a96c13 (patch) | |
| tree | 26afefa3667e36492c5b797d556e958dfe4372b4 /app.tsx | |
| parent | bar: optional modules (diff) | |
| download | caelestia-shell-c6dd4a4e972aae03f469fd88fbcdae37b8a96c13.tar.gz caelestia-shell-c6dd4a4e972aae03f469fd88fbcdae37b8a96c13.tar.bz2 caelestia-shell-c6dd4a4e972aae03f469fd88fbcdae37b8a96c13.zip | |
use state
Diffstat (limited to 'app.tsx')
| -rw-r--r-- | app.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)); <Launcher />; <NotifPopups />; |