Skip to content

Commit

Permalink
fix: Simplify ShowWindow to display and refresh Image Display
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLLspectre committed Mar 4, 2024
1 parent b545730 commit 61520ab
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions package/Editor/Images/Images.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,15 @@ public class Images : EditorWindow
[MenuItem("Window/Scenario/Images")]
public static void ShowWindow()
{
if (isVisible)
{
GetInferencesData();
}
else
if (!isVisible)
{
lastPageToken = string.Empty;
imageDataList.Clear();
GetInferencesData();

var images = (Images)GetWindow(typeof(Images));
ImagesUI.Init(images);
}
GetInferencesData();

var images = (Images)GetWindow(typeof(Images));
ImagesUI.Init(images);
}

private void OnGUI()
Expand Down

0 comments on commit 61520ab

Please sign in to comment.