Skip to content

Commit

Permalink
Merge pull request #26 from DHancock/dev
Browse files Browse the repository at this point in the history
Minor random updates
  • Loading branch information
DHancock authored Sep 26, 2022
2 parents bafcace + 45a994e commit c08da03
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions WinAppSdkCleaner/Models/Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ private static void AddUnknownSdkVersions(List<VersionRecord> versions, List<Pac
{
foreach (Package package in otherSdkPackages.DistinctBy(p => p.Id.Version))
{
PackageVersion pv = package.Id.Version;
versions.Add(new VersionRecord(string.Empty, pv));
versions.Add(new VersionRecord(string.Empty, package.Id.Version));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion WinAppSdkCleaner/Models/PackageRecord.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
namespace WinAppSdkCleaner.Models;

internal record class PackageRecord(Package Package, List<PackageRecord> PackagesDependentOnThis, int Depth = 0);
internal sealed record class PackageRecord(Package Package, List<PackageRecord> PackagesDependentOnThis, int Depth = 0);
2 changes: 1 addition & 1 deletion WinAppSdkCleaner/Models/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public int TimeoutPerPackage

private T Getter<T>([CallerMemberName] string name = "") => (T)this[name];

private void Setter<T>(T value, [CallerMemberName] string name = "") => this[name] = value;
private void Setter(object value, [CallerMemberName] string name = "") => this[name] = value;

public override void Save()
{
Expand Down
2 changes: 1 addition & 1 deletion WinAppSdkCleaner/Views/SdkView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>

<Grid Grid.RowSpan="2" Margin="20,20,20,10" >
<Grid Grid.RowSpan="2" Margin="20,20,20,10" SnapsToDevicePixels="true">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
Expand Down

0 comments on commit c08da03

Please sign in to comment.