Fix dataset creation window
This commit is contained in:
@@ -16,9 +16,9 @@ public class DatasetCreatorWindow : SzGuiWindowBase
|
|||||||
RefreshTemplates();
|
RefreshTemplates();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void RefreshTemplates()
|
private async void RefreshTemplates()
|
||||||
{
|
{
|
||||||
_ = SZ.DataHandler.LoadAllDataObjectTemplatesAsync();
|
await SZ.DataHandler.LoadAllDataObjectTemplatesAsync();
|
||||||
_templateIds = SZ.DataHandler.LoadedTemplates.Keys.ToList();
|
_templateIds = SZ.DataHandler.LoadedTemplates.Keys.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ public class SzLibraryWindow : SzGuiWindowBase
|
|||||||
ImGui.EndMenu();
|
ImGui.EndMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Added Refresh to the menu bar
|
|
||||||
if (ImGui.MenuItem("Refresh"))
|
if (ImGui.MenuItem("Refresh"))
|
||||||
{
|
{
|
||||||
RefreshData();
|
RefreshData();
|
||||||
|
|||||||
Reference in New Issue
Block a user