Skip to content

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

feat: set UserConfig with default values in AppState

Lars18b1175f0814
diff --git a/LarsWM.Core/UserConfigs/CommandHandlers/ReadUserConfigHandler.cs b/LarsWM.Core/UserConfigs/CommandHandlers/ReadUserConfigHandler.cs
index f2e51651..ebdbcd49 100644
--- a/LarsWM.Core/UserConfigs/CommandHandlers/ReadUserConfigHandler.cs
+++ b/LarsWM.Core/UserConfigs/CommandHandlers/ReadUserConfigHandler.cs
@@ -1,14 +1,22 @@
using LarsWM.Core.Common.Models;
using LarsWM.Core.UserConfigs.Commands;
-using System;
namespace LarsWM.Core.UserConfigs.CommandHandlers
{
class ReadUserConfigHandler : ICommandHandler<ReadUserConfigCommand>
{
+ private AppState _appState;
+
+ public ReadUserConfigHandler(AppState appState)
+ {
+ _appState = appState;
+ }
+
public void Handle(ReadUserConfigCommand command)
{
- throw new NotImplementedException();
+ // TODO: Read user config from file / shell script.
+ var userConfig = new UserConfig();
+ _appState.UserConfig = userConfig;
}
}
}