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

To match current Zotero 6 behavior on non-Windows systems
This commit is contained in:
Dan Stillman 2023-05-20 19:12:19 -04:00
parent 54d56f468b
commit c653449cc0

View file

@ -32,7 +32,7 @@ import TabBar from 'components/tabBar';
// Reduce loaded tabs limit if the system has 8 GB or less memory.
// TODO: Revise this after upgrading to Zotero 7
const MAX_LOADED_TABS = Services.sysinfo.getProperty("memsize") / 1024 / 1024 / 1024 <= 8 ? 2 : 5;
const MAX_LOADED_TABS = Services.sysinfo.getProperty("memsize") / 1024 / 1024 / 1024 <= 8 ? 3 : 5;
const UNLOAD_UNUSED_AFTER = 86400; // 24h
var Zotero_Tabs = new function () {