Skip to content

Commit

Permalink
Defer Store initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
dalyIsaac committed May 28, 2024
1 parent 0ad08dd commit 46ce22d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Whim.Bar/BarPlugin.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Text.Json;
using Windows.Win32.Graphics.Dwm;
Expand Down Expand Up @@ -44,7 +44,7 @@ public void PostInitialize()
foreach (IMonitor monitor in _context.MonitorManager)
{
BarWindow barWindow = new(_context, _barConfig, monitor);
_monitorBarMap.Add(monitor, barWindow);
_monitorBarMap[monitor] = barWindow;
}

ShowAll();
Expand Down
2 changes: 1 addition & 1 deletion src/Whim/Context/Context.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ public void Initialize()
// Initialize the managers.
Logger.Debug("Initializing...");
_internalContext.PreInitialize();
Store.Initialize();
PluginManager.PreInitialize();

NotificationManager.Initialize();
MonitorManager.Initialize();
WorkspaceManager.Initialize();
WindowManager.Initialize();

Store.Initialize();
Butler.Initialize();

WindowManager.PostInitialize();
Expand Down

0 comments on commit 46ce22d

Please sign in to comment.