mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 22:07:23 +01:00
add cache size hard cap based on last access time, remove more unnecessary things
This commit is contained in:
parent
90ec056a11
commit
7141c11059
6 changed files with 26 additions and 49 deletions
|
|
@ -344,6 +344,13 @@ namespace MareSynchronos.UI
|
|||
{
|
||||
ColorTextWrapped("The folder you selected does not exist or cannot be written to. Please provide a valid path.", ImGuiColors.DalamudRed);
|
||||
}
|
||||
|
||||
int maxCacheSize = _pluginConfiguration.MaxLocalCacheInGiB;
|
||||
if (ImGui.SliderInt("Maximum Cache Size in GB", ref maxCacheSize, 1, 50, "%d GB"))
|
||||
{
|
||||
_pluginConfiguration.MaxLocalCacheInGiB = maxCacheSize;
|
||||
_pluginConfiguration.Save();
|
||||
}
|
||||
}
|
||||
|
||||
private bool _isDirectoryWritable = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue