mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +01:00
feat: disable sort on changelog tab (#963)
This commit is contained in:
parent
c515d249fe
commit
d59eec195e
1 changed files with 11 additions and 1 deletions
|
|
@ -226,7 +226,9 @@ namespace Dalamud.Interface.Internal.Windows.PluginInstaller
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void OpenPluginChangelogs()
|
public void OpenPluginChangelogs()
|
||||||
{
|
{
|
||||||
|
// Changelog group
|
||||||
this.categoryManager.CurrentGroupIdx = 3;
|
this.categoryManager.CurrentGroupIdx = 3;
|
||||||
|
// Plugins category
|
||||||
this.categoryManager.CurrentCategoryIdx = 2;
|
this.categoryManager.CurrentCategoryIdx = 2;
|
||||||
this.IsOpen = true;
|
this.IsOpen = true;
|
||||||
}
|
}
|
||||||
|
|
@ -400,6 +402,11 @@ namespace Dalamud.Interface.Internal.Windows.PluginInstaller
|
||||||
if (searchTextChanged)
|
if (searchTextChanged)
|
||||||
this.UpdateCategoriesOnSearchChange();
|
this.UpdateCategoriesOnSearchChange();
|
||||||
|
|
||||||
|
// Changelog group
|
||||||
|
var isSortDisabled = this.categoryManager.CurrentGroupIdx == 3;
|
||||||
|
if (isSortDisabled)
|
||||||
|
ImGui.BeginDisabled();
|
||||||
|
|
||||||
ImGui.SameLine();
|
ImGui.SameLine();
|
||||||
ImGui.SetCursorPosY(downShift);
|
ImGui.SetCursorPosY(downShift);
|
||||||
ImGui.SetNextItemWidth(selectableWidth);
|
ImGui.SetNextItemWidth(selectableWidth);
|
||||||
|
|
@ -418,6 +425,9 @@ namespace Dalamud.Interface.Internal.Windows.PluginInstaller
|
||||||
|
|
||||||
ImGui.EndCombo();
|
ImGui.EndCombo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isSortDisabled)
|
||||||
|
ImGui.EndDisabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DrawFooter()
|
private void DrawFooter()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue