Fix dataset creation window

This commit is contained in:
2026-02-25 09:08:55 -06:00
parent dad80e30da
commit 1f5bacf8b7
2 changed files with 2 additions and 3 deletions

View File

@@ -16,9 +16,9 @@ public class DatasetCreatorWindow : SzGuiWindowBase
RefreshTemplates();
}
private void RefreshTemplates()
private async void RefreshTemplates()
{
_ = SZ.DataHandler.LoadAllDataObjectTemplatesAsync();
await SZ.DataHandler.LoadAllDataObjectTemplatesAsync();
_templateIds = SZ.DataHandler.LoadedTemplates.Keys.ToList();
}

View File

@@ -44,7 +44,6 @@ public class SzLibraryWindow : SzGuiWindowBase
ImGui.EndMenu();
}
// Added Refresh to the menu bar
if (ImGui.MenuItem("Refresh"))
{
RefreshData();