Increase active tabs count from 2 to 3 on Windows and <=8 GB systems

This commit is contained in:
Martynas Bagdonas 2023-01-17 19:35:38 +02:00
parent 9f53b48984
commit 1f721feab7

View file

@ -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 () {