From e4b93cb9a5de2e38fa3ce389e019fa89f68b81a8 Mon Sep 17 00:00:00 2001 From: Max Lefebvre Date: Tue, 8 Aug 2023 14:02:10 -0300 Subject: [PATCH] fix: compilation error in `VolumeComponentViewModel` (#351) --- GlazeWM.Bar/Components/VolumeComponentViewModel.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GlazeWM.Bar/Components/VolumeComponentViewModel.cs b/GlazeWM.Bar/Components/VolumeComponentViewModel.cs index e42cdd710..4a4764cfc 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 @@ public LabelViewModel CreateLabel(VolumeInformation volumeInfo) ); } - public static Dictionary CreateVariableDict( + public static Dictionary> CreateVariableDict( VolumeInformation volumeInfo) { return new() { - { "volume_level", volumeInfo.Volume.ToString("0", CultureInfo.InvariantCulture) }, + { "volume_level", () => volumeInfo.Volume.ToString("0", CultureInfo.InvariantCulture) }, }; } }