Skip to content

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

refactor(infra): change `Command` and `Event` name to a getter

Lars Bergerd8e3683e4420
diff --git a/GlazeWM.Infrastructure/Bussing/Command.cs b/GlazeWM.Infrastructure/Bussing/Command.cs
index 45aab465..3a583df4 100644
--- a/GlazeWM.Infrastructure/Bussing/Command.cs
+++ b/GlazeWM.Infrastructure/Bussing/Command.cs
@@ -2,11 +2,6 @@
{
public class Command
{
- public string Name { get; set; }
-
- public Command()
- {
- Name = GetType().Name;
- }
+ public string Name => GetType().Name;
}
}
diff --git a/GlazeWM.Infrastructure/Bussing/Event.cs b/GlazeWM.Infrastructure/Bussing/Event.cs
index 9140e1a7..4dcb731a 100644
--- a/GlazeWM.Infrastructure/Bussing/Event.cs
+++ b/GlazeWM.Infrastructure/Bussing/Event.cs
@@ -2,11 +2,6 @@
{
public class Event
{
- public string Name { get; set; }
-
- public Event()
- {
- Name = GetType().Name;
- }
+ public string Name => GetType().Name;
}
}