Merge pull request #317 from Aireil/fix_installer_on_open

fix: refresh installer window on open
This commit is contained in:
goaaats 2021-04-14 21:12:49 +02:00 committed by GitHub
commit d06a404e65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,9 +55,6 @@ namespace Dalamud.Plugin
this.Size = new Vector2(810, 520);
this.SizeCondition = ImGuiCond.Always;
if (this.dalamud.PluginRepository.State != PluginRepository.InitializationState.InProgress)
this.dalamud.PluginRepository.ReloadPluginMasterAsync();
}
private enum PluginInstallStatus
@ -75,6 +72,23 @@ namespace Dalamud.Plugin
LastUpdate,
}
public override void OnOpen()
{
base.OnOpen();
if (this.dalamud.PluginRepository.State != PluginRepository.InitializationState.InProgress)
this.dalamud.PluginRepository.ReloadPluginMasterAsync();
this.pluginListAvailable = null;
this.pluginListInstalled = null;
this.updateComplete = false;
this.updatePluginCount = 0;
this.updatedPlugins = null;
this.searchText = string.Empty;
this.sortKind = PluginSortKind.Alphabetical;
this.filterText = Loc.Localize("SortAlphabetical", "Alphabetical");
}
/// <summary>
/// Draw the plugin installer view ImGui.
/// </summary>