add manual garbage collection

This commit is contained in:
jeffvli
2026-01-01 12:21:05 -08:00
parent a7d2a427ec
commit 22c0f8f8c6
4 changed files with 67 additions and 1 deletions
+3
View File
@@ -497,6 +497,9 @@ if (shouldDisableMediaFeatures) {
// https://github.com/electron/electron/issues/46538#issuecomment-2808806722
app.commandLine.appendSwitch('gtk-version', '3');
// Enable garbage collection API
app.commandLine.appendSwitch('js-flags', '--expose-gc');
// Must duplicate with the one in renderer process settings.store.ts
enum BindingActions {
GLOBAL_SEARCH = 'globalSearch',