mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Created constant for max cache size
This commit is contained in:
parent
a183aa2538
commit
85ce784fb3
@ -20,6 +20,8 @@ namespace Wabbajack
|
||||
{
|
||||
internal class AppState : ViewModel, IDataErrorInfo
|
||||
{
|
||||
private const int MAX_CACHE_SIZE = 10;
|
||||
|
||||
private string _mo2Folder;
|
||||
|
||||
private ModList _modList;
|
||||
@ -353,7 +355,7 @@ namespace Wabbajack
|
||||
{
|
||||
dispatcher.Invoke(() => {
|
||||
// max cached files achieved
|
||||
if (cachedSlides.Count == 4)
|
||||
if (cachedSlides.Count == MAX_CACHE_SIZE)
|
||||
{
|
||||
if (File.Exists(cachePath) && !IsFileLocked(cachePath))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user