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:
parent
54d56f468b
commit
c653449cc0
1 changed files with 1 additions and 1 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue