Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

feat(bar): register view models and bar window for DI

Lars Berger1ced32394aec
diff --git a/GlazeWM.Bar/DependencyInjection.cs b/GlazeWM.Bar/DependencyInjection.cs
index 0f368e08..6f84aed9 100644
--- a/GlazeWM.Bar/DependencyInjection.cs
+++ b/GlazeWM.Bar/DependencyInjection.cs
@@ -8,6 +8,10 @@ namespace GlazeWM.Bar
{
services.AddSingleton<BarManagerService>();
+ services.AddScoped<MainWindow>();
+ services.AddScoped<BarViewModel>();
+ services.AddScoped<WorkspacesComponentViewModel>();
+
return services;
}
}