mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
[fxcop] Settings UI library (part 1) (#7187)
* Mark methods static and replace Count() with Length * Use IsNullOrEmpty for null string checks * Remove redundant initializations to default values * Use nameof(property name) in place of string literals * Add NativeMethods class * Rename property getters in KeysDataModel & AppSpecificKeysDataModel * Remove underscores from method names * Mark Helper class static * Address comments & typo fixes * Add EncoderGuid property and fix failing build * Update binding in GeneralPages.xaml
This commit is contained in:
@@ -12,14 +12,14 @@ namespace Microsoft.PowerToys.Settings.UI.Lib
|
||||
[JsonPropertyName("targetApp")]
|
||||
public string TargetApp { get; set; }
|
||||
|
||||
public new List<string> GetOriginalKeys()
|
||||
public new List<string> GetMappedOriginalKeys()
|
||||
{
|
||||
return base.GetOriginalKeys();
|
||||
return base.GetMappedOriginalKeys();
|
||||
}
|
||||
|
||||
public new List<string> GetNewRemapKeys()
|
||||
public new List<string> GetMappedNewRemapKeys()
|
||||
{
|
||||
return base.GetNewRemapKeys();
|
||||
return base.GetMappedNewRemapKeys();
|
||||
}
|
||||
|
||||
public bool Compare(AppSpecificKeysDataModel arg)
|
||||
|
||||
Reference in New Issue
Block a user