Fix warning CS8524 instances (#36837)
This commit is contained in:
@@ -90,10 +90,12 @@ public sealed partial class NanoTaskItemPopup : DefaultWindow
|
||||
{
|
||||
if (item is NanoTaskItem task)
|
||||
{
|
||||
var button = task.Priority switch {
|
||||
var button = task.Priority switch
|
||||
{
|
||||
NanoTaskPriority.High => HighButton,
|
||||
NanoTaskPriority.Medium => MediumButton,
|
||||
NanoTaskPriority.Low => LowButton,
|
||||
_ => throw new ArgumentException("Invalid priority"),
|
||||
};
|
||||
button.Pressed = true;
|
||||
DescriptionInput.Text = task.Description;
|
||||
|
||||
Reference in New Issue
Block a user