Skip to content

Commit c781965

Browse files
committed
module activity check shortcut
1 parent af662dc commit c781965

File tree

3 files changed

+7
-28
lines changed

3 files changed

+7
-28
lines changed

.github/workflows/pull.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

extensions_main/window-events.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const { app, globalShortcut } = require('electron');
2+
const {checkActiveModules} = require('../main')
23

34
// Sample Module. Plase copy-paste this file into new module's main folder
45
class WindowSetup extends require('../lib/BaseModule')
@@ -33,6 +34,9 @@ class WindowSetup extends require('../lib/BaseModule')
3334
globalShortcut.register('d', () => {
3435
this.tab.webContents.toggleDevTools();
3536
});
37+
globalShortcut.register('c', () => {
38+
checkActiveModules();
39+
});
3640

3741
if (this.__data.fullscreen == true) this.window.setFullScreen(true);
3842
}

main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ async function createMainWindow()
8484

8585
if (Env.DEBUG_MODE)
8686
{
87-
console.log('CHECKING ACTIVE MODULES:');
8887
checkActiveModules();
8988
}
9089
// mainWindow.maximize();
@@ -93,9 +92,12 @@ async function createMainWindow()
9392
// Only main-side!!! Check app console for preload fails
9493
function checkActiveModules()
9594
{
95+
console.log('CHECKING ACTIVE MODULES:');
9696
enabled_modules.forEach(function (e) {
9797
e.log(e.isActive());
9898
});
9999
}
100100

101101
app.on('ready', createMainWindow);
102+
103+
module.exports = { checkActiveModules }

0 commit comments

Comments
 (0)