Skip to content

Commit

Permalink
fix: compilation error in VolumeComponentViewModel (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxle5 authored Aug 8, 2023
1 parent 444ea5c commit e4b93cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions GlazeWM.Bar/Components/VolumeComponentViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using GlazeWM.Domain.UserConfigs;
Expand Down Expand Up @@ -57,12 +58,12 @@ public LabelViewModel CreateLabel(VolumeInformation volumeInfo)
);
}

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) },
};
}
}
Expand Down

0 comments on commit e4b93cb

Please sign in to comment.