move to src/main
This commit is contained in:
@@ -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;
|
||||
}
|
||||
1
src/lib/extern/global.d.ts
vendored
1
src/lib/extern/global.d.ts
vendored
@@ -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
1
src/main/global.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
declare const KWin: KWin;
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user