Skip to content

Commit

Permalink
Show apply changes disable reason in tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Nov 27, 2022
1 parent 2b447ed commit 5d335bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions GUI/Controls/ManageMods.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion GUI/Controls/ManageMods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1656,11 +1656,14 @@ public async Task UpdateChangeSetAndConflicts(GameInstance inst, IRegistryQuerie
{
var module_installer = new ModuleInstaller(inst, Main.Instance.Manager.Cache, Main.Instance.currentUser);
full_change_set = mainModList.ComputeChangeSetFromModList(registry, user_change_set, module_installer, inst.VersionCriteria()).ToList();
ApplyToolButton.ToolTipText = "";
}
catch (InconsistentKraken k)
{
// Need to be recomputed due to ComputeChangeSetFromModList possibly changing it with too many provides handling.
// Tell the user why we can't apply changes
Util.Invoke(this, () => ApplyToolButton.ToolTipText = k.ShortDescription);
Main.Instance.AddStatusMessage(k.ShortDescription);
// Need to be recomputed due to ComputeChangeSetFromModList possibly changing it with too many provides handling.
user_change_set = mainModList.ComputeUserChangeSet(registry, inst.VersionCriteria());
new_conflicts = ModList.ComputeConflictsFromModList(registry, user_change_set, inst.VersionCriteria());
full_change_set = null;
Expand Down

0 comments on commit 5d335bb

Please sign in to comment.