summaryrefslogtreecommitdiff
path: root/app.tsx
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-02-22 15:25:09 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-02-22 15:25:09 +1100
commitc6dd4a4e972aae03f469fd88fbcdae37b8a96c13 (patch)
tree26afefa3667e36492c5b797d556e958dfe4372b4 /app.tsx
parentbar: optional modules (diff)
downloadcaelestia-shell-c6dd4a4e972aae03f469fd88fbcdae37b8a96c13.tar.gz
caelestia-shell-c6dd4a4e972aae03f469fd88fbcdae37b8a96c13.tar.bz2
caelestia-shell-c6dd4a4e972aae03f469fd88fbcdae37b8a96c13.zip
use state
Diffstat (limited to 'app.tsx')
-rw-r--r--app.tsx6
1 files changed, 3 insertions, 3 deletions
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));
<Launcher />;
<NotifPopups />;