Skip to content

Commit

Permalink
Clean up with latest C# features
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Jan 11, 2024
1 parent 10132e3 commit fe02ebe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions LightBulb.WindowsApi/Utils/Reg.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,11 @@ public static void SetValue<T>(string key, string entry, T value)
)
};

Run(
new[] { "add", key, "/v", entry, "/d", value?.ToString() ?? "", "/t", entryType, "/f" },
true
);
Run(["add", key, "/v", entry, "/d", value?.ToString() ?? "", "/t", entryType, "/f"], true);
}

public static void DeleteValue(string key, string entry)
{
Run(new[] { "delete", key, "/v", entry, "/f" }, true);
Run(["delete", key, "/v", entry, "/f"], true);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ namespace LightBulb.Behaviors;

// Bless WPF
public class ExternalApplicationMultiSelectionListBoxBehavior
: MultiSelectionListBoxBehavior<ExternalApplication> { }
: MultiSelectionListBoxBehavior<ExternalApplication>;
2 changes: 1 addition & 1 deletion LightBulb/ViewModels/Framework/DialogScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ public void Close(T dialogResult)
}
}

public abstract class DialogScreen : DialogScreen<bool?> { }
public abstract class DialogScreen : DialogScreen<bool?>;

0 comments on commit fe02ebe

Please sign in to comment.