💥 fix: config being declared after its usage

`generalConfig` and `userData` are now stored under src/config.ts
This commit is contained in:
retrozinndev
2025-09-26 14:12:29 -03:00
parent c8364c99f2
commit 30e0f24a86
10 changed files with 85 additions and 79 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ import { Runner } from "../runner/Runner";
import { showWorkspaceNumber } from "../window/bar/widgets/Workspaces";
import { playSystemBell } from "./utils";
import { player, setPlayer } from "./media";
import { generalConfig, Shell } from "../app";
import { Shell } from "../app";
import { generalConfig } from "../config";
import AstalIO from "gi://AstalIO";
import AstalMpris from "gi://AstalMpris";
+2 -2
View File
@@ -1,9 +1,9 @@
import { createRoot, getScope, Scope } from "ags";
import GObject, { getter, gtype, property, register, setter } from "ags/gobject";
import { execAsync } from "ags/process";
import { userData } from "../config";
import GObject, { getter, gtype, property, register, setter } from "ags/gobject";
import AstalBluetooth from "gi://AstalBluetooth";
import { userData } from "../app";
/** AstalBluetooth helper (implements the default adapter feature) */
+1 -1
View File
@@ -1,5 +1,5 @@
import { execAsync } from "ags/process";
import { generalConfig } from "../app";
import { generalConfig } from "../config";
import { onCleanup } from "ags";
import GObject, { getter, ParamSpec, property, register, signal } from "ags/gobject";