allow loading dev plugins with the wrong API level, but add a validation error

This commit is contained in:
goat 2024-06-28 23:45:12 +02:00
parent d628be9536
commit 7283e634e9
4 changed files with 26 additions and 2 deletions

View file

@ -2779,7 +2779,7 @@ internal class PluginInstallerWindow : Window, IDisposable
var disabled = this.updateStatus == OperationStatus.InProgress || this.installStatus == OperationStatus.InProgress;
// Disable everything if the plugin is outdated
disabled = disabled || (plugin.IsOutdated && !pluginManager.LoadAllApiLevels) || plugin.IsBanned;
disabled = disabled || (plugin.IsOutdated && !pluginManager.LoadAllApiLevels && !plugin.IsDev) || plugin.IsBanned;
// Disable everything if the plugin is orphaned
// Control will immediately be disabled once the plugin is disabled