From 1f721feab73658b191d3f75d25d451698a690773 Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Tue, 17 Jan 2023 19:35:38 +0200 Subject: [PATCH] Increase active tabs count from 2 to 3 on Windows and <=8 GB systems --- chrome/content/zotero/tabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/tabs.js b/chrome/content/zotero/tabs.js index 12890b49e1..b6eeb2d5c3 100644 --- a/chrome/content/zotero/tabs.js +++ b/chrome/content/zotero/tabs.js @@ -33,7 +33,7 @@ import TabBar from 'components/tabBar'; // Reduce loaded tabs limit if the system has 8 GB or less memory, or it's running // on Windows which means it doesn't support more than 3 GB // TODO: Revise this after upgrading to Zotero 7 -const MAX_LOADED_TABS = Services.sysinfo.getProperty("memsize") / 1024 / 1024 / 1024 <= 8 || Zotero.isWin ? 2 : 5; +const MAX_LOADED_TABS = Services.sysinfo.getProperty("memsize") / 1024 / 1024 / 1024 <= 8 || Zotero.isWin ? 3 : 5; const UNLOAD_UNUSED_AFTER = 86400; // 24h var Zotero_Tabs = new function () {