mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-28 11:29:24 +01:00
tmp
This commit is contained in:
parent
2bf80dfa6b
commit
e86899c943
11 changed files with 362 additions and 353 deletions
|
|
@ -87,15 +87,15 @@ public class CollectionsTab : IDisposable, ITab
|
|||
/// <summary> Draw the Clean Unused Settings button if there are any. </summary>
|
||||
private void DrawCleanCollectionButton(Vector2 width)
|
||||
{
|
||||
if (!_collectionManager.Active.Current.HasUnusedSettings)
|
||||
if (_collectionManager.Active.Current.UnusedSettings.Count == 0)
|
||||
return;
|
||||
|
||||
ImGui.SameLine();
|
||||
if (ImGuiUtil.DrawDisabledButton(
|
||||
$"Clean {_collectionManager.Active.Current.NumUnusedSettings} Unused Settings###CleanSettings", width
|
||||
$"Clean {_collectionManager.Active.Current.UnusedSettings.Count} Unused Settings###CleanSettings", width
|
||||
, "Remove all stored settings for mods not currently available and fix invalid settings.\n\nUse at own risk."
|
||||
, false))
|
||||
_collectionManager.Active.Current.CleanUnavailableSettings();
|
||||
_collectionManager.Storage.CleanUnavailableSettings(_collectionManager.Active.Current);
|
||||
}
|
||||
|
||||
/// <summary> Draw the new collection input as well as its buttons. </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue