GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
fix(bar): use battery label format for no battery (#220)
Aryaman Marathef29a0153dc32
diff --git a/GlazeWM.Bar/Components/BatteryComponentViewModel.cs b/GlazeWM.Bar/Components/BatteryComponentViewModel.csindex 6d74297e..c405fc54 100644--- a/GlazeWM.Bar/Components/BatteryComponentViewModel.cs+++ b/GlazeWM.Bar/Components/BatteryComponentViewModel.cs@@ -23,7 +23,7 @@ namespace GlazeWM.Bar.Components// display the battery level as a 100% if no dedicated battery is available on the deviceif (ps.BatteryFlag == 128){- return " 100% ";+ return _batteryComponentConfig.Draining.Replace("{battery_level}", "100");}if (ps.ACLineStatus == 1)