Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dalyIsaac committed Oct 10, 2024
1 parent 893d016 commit a57b585
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Whim.Yaml/YamlBarPluginLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private static List<BarComponent> GetBarComponents(IContext ctx, Schema.DefsRequ
components.Add(CreateWorkspaceBarWidget(ctx, widget));
return null;
},
(in Schema.AWidgetToDisplayTheDirectionOfTheTreeLayoutEngine widget) =>
(in Schema.DefsRequiredType2 widget) =>
{
components.Add(CreateTreeLayoutEngineBarWidget(ctx, widget));
return null;
Expand Down Expand Up @@ -136,10 +136,7 @@ private static BarComponent CreateWorkspaceBarWidget(IContext ctx, Schema.AWidge
return WorkspaceWidget.CreateComponent();
}

private static BarComponent CreateTreeLayoutEngineBarWidget(
IContext ctx,
Schema.AWidgetToDisplayTheDirectionOfTheTreeLayoutEngine widget
)
private static BarComponent CreateTreeLayoutEngineBarWidget(IContext ctx, Schema.DefsRequiredType2 widget)
{
if (
ctx.PluginManager.LoadedPlugins.FirstOrDefault(p => p.Name == "whim.tree_layout")
Expand Down

0 comments on commit a57b585

Please sign in to comment.