mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Merge pull request #317 from Aireil/fix_installer_on_open
fix: refresh installer window on open
This commit is contained in:
commit
d06a404e65
1 changed files with 17 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue