move to src/main

This commit is contained in:
Peter Fajdiga
2024-09-08 09:06:46 +02:00
parent 494192179b
commit d0c4cee63d
4 changed files with 9 additions and 8 deletions

View File

@@ -1,7 +0,0 @@
function loadConfig(): Config {
const config: any = {};
for (const entry of configDef) {
config[entry.name] = KWin.readConfig(entry.name, entry.default);
}
return config;
}

View File

@@ -1,6 +1,5 @@
declare const console: Console;
declare const Qt: Qt;
declare const KWin: KWin;
declare const Workspace: Workspace;
declare const qmlBase: QmlObject;
declare const notificationInvalidWindowRules: Notification;

1
src/main/global.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
declare const KWin: KWin;

View File

@@ -1,3 +1,11 @@
function init() {
return new World(loadConfig());
}
function loadConfig(): Config {
const config: any = {};
for (const entry of configDef) {
config[entry.name] = KWin.readConfig(entry.name, entry.default);
}
return config;
}