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
}

View file

@ -1572,6 +1572,9 @@ internal class PluginManager : IInternalDisposableService
{
Log.Information($"Loading dev plugin {name}");
plugin = new LocalDevPlugin(dllFile, manifest);
// This is a dev plugin - turn ImGui asserts on by default if we haven't chosen yet
this.configuration.ImGuiAssertsEnabledAtStartup ??= true;
}
else
{