Skip to content

Commit

Permalink
fixed places where refresh button didn't reset cache
Browse files Browse the repository at this point in the history
  • Loading branch information
GeBo1 authored and ManlyMarco committed Nov 12, 2021
1 parent 788a0d4 commit 30b727b
Show file tree
Hide file tree
Showing 14 changed files with 42 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Common_AIHS2/MakerFolders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ private static void TreeWindow(int id)
GUILayout.BeginVertical(GUI.skin.box, GUILayout.ExpandWidth(true), GUILayout.ExpandHeight(false));
{
if (GUILayout.Button("Refresh thumbnails"))
{
_folderTreeView?.ResetTreeCache();
RefreshCurrentWindow();
}

GUILayout.Space(1);

Expand Down
3 changes: 3 additions & 0 deletions src/Common_AIHS2/MakerOutfitFolders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ private static void TreeWindow(int id)
GUILayout.BeginVertical(GUI.skin.box, GUILayout.ExpandWidth(true), GUILayout.ExpandHeight(false));
{
if (GUILayout.Button("Refresh thumbnails"))
{
_folderTreeView?.ResetTreeCache();
RefreshCurrentWindow();
}

GUILayout.Space(1);

Expand Down
3 changes: 3 additions & 0 deletions src/Common_AIHS2/SceneFolders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ private static void TreeWindow(int id)
GUILayout.BeginVertical(GUI.skin.box, GUILayout.Width(200));
{
if (GUILayout.Button("Refresh scene thumbnails"))
{
_folderTreeView?.ResetTreeCache();
OnFolderChanged();
}

GUILayout.FlexibleSpace();

Expand Down
3 changes: 3 additions & 0 deletions src/EC_BrowserFolders/Hooks/MakerCharaFolders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ private static void TreeWindow(int id)
GUILayout.BeginVertical(GUI.skin.box, GUILayout.ExpandWidth(true), GUILayout.ExpandHeight(false));
{
if (GUILayout.Button("Refresh thumbnails"))
{
_folderTreeView?.ResetTreeCache();
OnFolderChanged();
}

GUILayout.Space(1);

Expand Down
3 changes: 3 additions & 0 deletions src/EC_BrowserFolders/Hooks/MakerHPoseIKFolders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ private static void TreeWindow(int id)
GUILayout.BeginVertical(GUI.skin.box, GUILayout.ExpandWidth(true), GUILayout.ExpandHeight(false));
{
if (GUILayout.Button("Refresh thumbnails"))
{
_folderTreeView?.ResetTreeCache();
OnFolderChanged();
}

GUILayout.Space(1);

Expand Down
3 changes: 3 additions & 0 deletions src/EC_BrowserFolders/Hooks/MakerMapFolders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ private static void TreeWindow(int id)
GUILayout.BeginVertical(GUI.skin.box, GUILayout.ExpandWidth(true), GUILayout.ExpandHeight(false));
{
if (GUILayout.Button("Refresh thumbnails"))
{
_folderTreeView?.ResetTreeCache();
OnFolderChanged();
}

GUILayout.Space(1);

Expand Down
3 changes: 3 additions & 0 deletions src/EC_BrowserFolders/Hooks/MakerMapSaveFolders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ private static void TreeWindow(int id)
GUILayout.BeginVertical(GUI.skin.box, GUILayout.ExpandWidth(true), GUILayout.ExpandHeight(false));
{
if (GUILayout.Button("Refresh thumbnails"))
{
_folderTreeView?.ResetTreeCache();
OnFolderChanged();
}

GUILayout.Space(1);

Expand Down
3 changes: 3 additions & 0 deletions src/EC_BrowserFolders/Hooks/MakerOutfitFolders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,10 @@ private static void TreeWindow(int id)
GUILayout.BeginVertical(GUI.skin.box, GUILayout.ExpandWidth(true), GUILayout.ExpandHeight(false));
{
if (GUILayout.Button("Refresh thumbnails"))
{
_folderTreeView?.ResetTreeCache();
OnFolderChanged();
}

GUILayout.Space(1);

Expand Down
3 changes: 3 additions & 0 deletions src/EC_BrowserFolders/Hooks/MakerPoseFolders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ private static void TreeWindow(int id)
GUILayout.BeginVertical(GUI.skin.box, GUILayout.ExpandWidth(true), GUILayout.ExpandHeight(false));
{
if (GUILayout.Button("Refresh thumbnails"))
{
_folderTreeView?.ResetTreeCache();
OnFolderChanged();
}

GUILayout.Space(1);

Expand Down
3 changes: 3 additions & 0 deletions src/EC_BrowserFolders/Hooks/MakerPoseSaveFolders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ private static void TreeWindow(int id)
GUILayout.BeginVertical(GUI.skin.box, GUILayout.ExpandWidth(true), GUILayout.ExpandHeight(false));
{
if (GUILayout.Button("Refresh thumbnails"))
{
_folderTreeView?.ResetTreeCache();
OnFolderChanged();
}

GUILayout.Space(1);

Expand Down
3 changes: 3 additions & 0 deletions src/EC_BrowserFolders/Hooks/MakerSceneFolders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ private static void TreeWindow(int id)
GUILayout.BeginVertical(GUI.skin.box, GUILayout.ExpandWidth(true), GUILayout.ExpandHeight(false));
{
if (GUILayout.Button("Refresh thumbnails"))
{
_folderTreeView?.ResetTreeCache();
OnFolderChanged();
}

GUILayout.Space(1);

Expand Down
3 changes: 3 additions & 0 deletions src/HS2_BrowserFolders/MainGameFolders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ private static void TreeWindow(int id)
GUILayout.BeginVertical(GUI.skin.box, GUILayout.ExpandWidth(true), GUILayout.ExpandHeight(false));
{
if (GUILayout.Button("Refresh thumbnails"))
{
_folderTreeView?.ResetTreeCache();
RefreshCurrentWindow();
}

GUILayout.Space(1);

Expand Down
3 changes: 3 additions & 0 deletions src/KKS_BrowserFolders_Hooks/SceneFolders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ private static void TreeWindow(int id)
GUILayout.BeginVertical(GUI.skin.box, GUILayout.Width(200));
{
if (GUILayout.Button("Refresh scene thumbnails"))
{
_folderTreeView.ResetTreeCache();
OnFolderChanged();
}

GUILayout.FlexibleSpace();

Expand Down
3 changes: 3 additions & 0 deletions src/KK_Hooks_KK/SceneFolders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ private static void TreeWindow(int id)
GUILayout.BeginVertical(GUI.skin.box, GUILayout.Width(200));
{
if (GUILayout.Button("Refresh scene thumbnails"))
{
_folderTreeView?.ResetTreeCache();
OnFolderChanged();
}

GUILayout.FlexibleSpace();

Expand Down

0 comments on commit 30b727b

Please sign in to comment.