Call Cache.Update every time it gets drawn, not only if the list is nonempty.

This commit is contained in:
Ottermandias 2021-08-17 18:30:56 +02:00
parent eea7cba805
commit aa92127772
2 changed files with 2 additions and 8 deletions

View file

@ -744,9 +744,9 @@ namespace Penumbra.UI
public void Draw()
{
if( Cache.Count == 0 )
if( Cache.Update() && Mod != null )
{
return;
SelectModByDir( Mod.Data.BasePath.Name );
}
try
@ -764,10 +764,6 @@ namespace Penumbra.UI
true, ImGuiWindowFlags.HorizontalScrollbar );
ImGui.PushStyleVar( ImGuiStyleVar.IndentSpacing, 12.5f );
if( Cache.Update() && Mod != null )
{
SelectModByDir( Mod.Data.BasePath.Name );
}
var modIndex = 0;
DrawFolderContent( _modManager.StructuredMods, ref modIndex );

View file

@ -241,8 +241,6 @@ namespace Penumbra.UI
"The number of frames penumbra waits after some events (like zone changes) until it starts trying to redraw actors again, in a range of [1, 3001].\n"
+ "Keep this as low as possible while producing stable results." );
}
;
}
}