This commit is contained in:
Samidy 2026-02-20 17:01:22 +03:00
parent 2c167fdb16
commit 9d120c2f05
3 changed files with 3 additions and 6 deletions

View file

@ -26,7 +26,7 @@
"borderless": false, "borderless": false,
"enableInspector": true, "enableInspector": true,
"openInspectorOnStartup": true, "openInspectorOnStartup": true,
"exitProcessOnClose": false "exitProcessOnClose": true
} }
}, },
"port": 5050, "port": 5050,
@ -44,5 +44,5 @@
"commandWindows": "powershell.exe -ExecutionPolicy Bypass -File \"${NL_PATH}/extensions/js.neutralino.discordrpc/bridge.ps1\"" "commandWindows": "powershell.exe -ExecutionPolicy Bypass -File \"${NL_PATH}/extensions/js.neutralino.discordrpc/bridge.ps1\""
} }
], ],
"nativeAllowList": ["app.exit", "window.*", "extensions.*", "filesystem.*", "events.*", "os.*"] "nativeAllowList": ["app.*", "window.*", "extensions.*", "events.*", "os.*", "filesystem.*", "debug.*", "storage.*", "computer.*", "clipboard.*", "updater.*"]
} }

View file

@ -44,5 +44,5 @@
"commandWindows": "powershell.exe -ExecutionPolicy Bypass -File \"${NL_PATH}/extensions/js.neutralino.discordrpc/bridge.ps1\"" "commandWindows": "powershell.exe -ExecutionPolicy Bypass -File \"${NL_PATH}/extensions/js.neutralino.discordrpc/bridge.ps1\""
} }
], ],
"nativeAllowList": ["app.exit", "window.*", "extensions.*", "events.*", "os.*", "filesystem.*"] "nativeAllowList": ["app.*", "window.*", "extensions.*", "events.*", "os.*", "filesystem.*", "debug.*", "storage.*", "computer.*", "clipboard.*", "updater.*"]
} }

View file

@ -129,9 +129,6 @@
// Listen for specific events to forward // Listen for specific events to forward
// Add more here if the app needs them (e.g., tray events) // Add more here if the app needs them (e.g., tray events)
Neutralino.events.on('windowClose', async () => {
await Neutralino.window.hide();
});
Neutralino.events.on('windowFocus', () => forwardEvent('windowFocus')); Neutralino.events.on('windowFocus', () => forwardEvent('windowFocus'));
Neutralino.events.on('windowBlur', () => forwardEvent('windowBlur')); Neutralino.events.on('windowBlur', () => forwardEvent('windowBlur'));