only turn ImGui asserts on if we are actually loading a devplugin

This commit is contained in:
goat 2024-12-25 23:42:50 +01:00
parent 1083081706
commit b79c646b9b
2 changed files with 3 additions and 6 deletions

View file

@ -605,12 +605,6 @@ internal sealed class DalamudConfiguration : IInternalDisposableService
this.AutoUpdateBehavior ??= this.AutoUpdatePlugins
? Plugin.Internal.AutoUpdate.AutoUpdateBehavior.UpdateAll
: Plugin.Internal.AutoUpdate.AutoUpdateBehavior.OnlyNotify;
// Turn ImGui asserts on by default if we have any active dev plugins
if (!this.ImGuiAssertsEnabledAtStartup.HasValue && this.DevPluginLoadLocations.Any(x => x.IsEnabled))
{
this.ImGuiAssertsEnabledAtStartup = true;
}
#pragma warning restore CS0618
}