29 lines
589 B
C#
29 lines
589 B
C#
using Questionable.Windows.ConfigComponents;
|
|
|
|
namespace Questionable.Windows.Setup;
|
|
|
|
internal sealed class PluginsStep : ISetupStep
|
|
{
|
|
private readonly PluginConfigComponent _pluginConfigComponent;
|
|
|
|
private bool _allRequiredInstalled;
|
|
|
|
public string Title => "Required plugins";
|
|
|
|
public bool CanAdvance => _allRequiredInstalled;
|
|
|
|
public PluginsStep(PluginConfigComponent pluginConfigComponent)
|
|
{
|
|
_pluginConfigComponent = pluginConfigComponent;
|
|
}
|
|
|
|
public bool ShouldShow()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public void Draw()
|
|
{
|
|
_pluginConfigComponent.Draw(out _allRequiredInstalled);
|
|
}
|
|
}
|