GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
refactor(bar,boot): rename `BarManagerService` -> `BarService`
Lars Berger75fa356ba5fc
diff --git a/GlazeWM.Bar/BarManagerService.cs b/GlazeWM.Bar/BarService.cssimilarity index 84%rename from GlazeWM.Bar/BarManagerService.csrename to GlazeWM.Bar/BarService.csindex bb9f2fa4..382d7898 100644--- a/GlazeWM.Bar/BarManagerService.cs+++ b/GlazeWM.Bar/BarService.cs@@ -5,25 +5,23 @@ using System.Reactive.Linq;using System;using System.Threading;using GlazeWM.Domain.UserConfigs;-using GlazeWM.Infrastructure;-using Microsoft.Extensions.DependencyInjection;namespace GlazeWM.Bar{- public class BarManagerService+ public class BarService{private Bus _bus;private WorkspaceService _workspaceService;private UserConfigService _userConfigService;- public BarManagerService(Bus bus, WorkspaceService workspaceService, UserConfigService userConfigService)+ public BarService(Bus bus, WorkspaceService workspaceService, UserConfigService userConfigService){_bus = bus;_workspaceService = workspaceService;_userConfigService = userConfigService;}- public void Init()+ public void StartApp(){var thread = new Thread(() =>{diff --git a/GlazeWM.Bar/DependencyInjection.cs b/GlazeWM.Bar/DependencyInjection.csindex 0f368e08..5e693fb4 100644--- a/GlazeWM.Bar/DependencyInjection.cs+++ b/GlazeWM.Bar/DependencyInjection.cs@@ -6,7 +6,7 @@ namespace GlazeWM.Bar{public static IServiceCollection AddBarServices(this IServiceCollection services){- services.AddSingleton<BarManagerService>();+ services.AddSingleton<BarService>();return services;}diff --git a/GlazeWM.Bootstrapper/Startup.cs b/GlazeWM.Bootstrapper/Startup.csindex 58420291..db86a967 100644--- a/GlazeWM.Bootstrapper/Startup.cs+++ b/GlazeWM.Bootstrapper/Startup.cs@@ -23,7 +23,7 @@ namespace GlazeWM.Bootstrapperprivate KeybindingService _keybindingService;private WindowEventService _windowEventService;private WindowService _windowService;- private BarManagerService _barManagerService;+ private BarService _barService;private WorkspaceService _workspaceService;public Startup(@@ -32,7 +32,7 @@ namespace GlazeWM.BootstrapperKeybindingService keybindingService,WindowEventService windowEventService,WindowService windowService,- BarManagerService barManagerService,+ BarService barService,WorkspaceService workspaceService){_bus = bus;@@ -40,7 +40,7 @@ namespace GlazeWM.Bootstrapper_keybindingService = keybindingService;_windowEventService = windowEventService;_windowService = windowService;- _barManagerService = barManagerService;+ _barService = barService;_workspaceService = workspaceService;}@@ -48,8 +48,7 @@ namespace GlazeWM.Bootstrapper{// Launch bar WPF application. Spawns bar window when monitors are added, so the service needs// to be initialized before populating initial state.- // TODO: Rename `Init` method to `Start`.- _barManagerService.Init();+ _barService.StartApp();_keybindingService.Start();// Populate initial monitors, windows, workspaces and user config.