getting stylecop undercontrol for UI warnings (#5630)

This commit is contained in:
Clint Rutkas
2020-08-06 11:16:25 -07:00
committed by GitHub
parent ed36447bdf
commit 7b767df0b5
16 changed files with 70 additions and 119 deletions

View File

@@ -13,7 +13,7 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels.Commands
public ButtonClickCommand(Action execute)
{
this._execute = execute;
_execute = execute;
}
// Occurs when changes occur that affect whether or not the command should execute.
@@ -30,5 +30,7 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels.Commands
{
_execute();
}
public void OnCanExecuteChanged() => CanExecuteChanged?.Invoke(this, EventArgs.Empty);
}
}