Revert "Limit Windows version to 2 PDF tabs in memory"

This reverts commit ffc8088ccd.

I cherry-picked this, but it's not necessary in Zotero 7, which has a
Win64 build.
This commit is contained in:
Dan Stillman 2023-01-17 23:09:05 -05:00
parent 3d4b93c86a
commit 786d3db880

View file

@ -30,10 +30,9 @@ var React = require('react');
var ReactDOM = require('react-dom');
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
// 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 || Zotero.isWin ? 2 : 5;
const MAX_LOADED_TABS = Services.sysinfo.getProperty("memsize") / 1024 / 1024 / 1024 <= 8 ? 2 : 5;
const UNLOAD_UNUSED_AFTER = 86400; // 24h
var Zotero_Tabs = new function () {