GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
fix: compilation error in `VolumeComponentViewModel` (#351)
Max Lefebvree4b93cb9a5de
diff --git a/GlazeWM.Bar/Components/VolumeComponentViewModel.cs b/GlazeWM.Bar/Components/VolumeComponentViewModel.csindex e42cdd71..4a4764cf 100644--- a/GlazeWM.Bar/Components/VolumeComponentViewModel.cs+++ b/GlazeWM.Bar/Components/VolumeComponentViewModel.cs@@ -1,3 +1,4 @@+using System;using System.Collections.Generic;using System.Globalization;using GlazeWM.Domain.UserConfigs;@@ -57,12 +58,12 @@ namespace GlazeWM.Bar.Components);}- public static Dictionary<string, string> CreateVariableDict(+ public static Dictionary<string, Func<string>> CreateVariableDict(VolumeInformation volumeInfo){return new(){- { "volume_level", volumeInfo.Volume.ToString("0", CultureInfo.InvariantCulture) },+ { "volume_level", () => volumeInfo.Volume.ToString("0", CultureInfo.InvariantCulture) },};}}