more fixes for getting styleCop up, this will need one more push to get another 15 that will require renaming of vars (#5875)

This commit is contained in:
Clint Rutkas
2020-08-11 13:40:26 -07:00
committed by GitHub
parent 90502f7553
commit 2c49df4be3
24 changed files with 255 additions and 181 deletions

View File

@@ -33,7 +33,7 @@ namespace Wox.Infrastructure.UserSettings
ID = metadata.ID,
Name = metadata.Name,
ActionKeywords = metadata.ActionKeywords,
Disabled = metadata.Disabled
Disabled = metadata.Disabled,
};
}
}

View File

@@ -14,7 +14,7 @@ namespace Wox.Infrastructure.UserSettings
public class Settings : BaseModel
{
private string _hotkey = "Alt + Space";
private string _previousHotkey = "";
private string _previousHotkey = string.Empty;
public string PreviousHotkey
{
@@ -63,7 +63,7 @@ namespace Wox.Infrastructure.UserSettings
public string ResultFontStretch { get; set; }
/// <summary>
/// when false Alphabet static service will always return empty results
/// Gets or sets a value indicating whether when false Alphabet static service will always return empty results
/// </summary>
public bool ShouldUsePinyin { get; set; } = false;
@@ -72,10 +72,13 @@ namespace Wox.Infrastructure.UserSettings
[JsonIgnore]
public string QuerySearchPrecisionString
{
get { return QuerySearchPrecision.ToString(); }
get
{
return QuerySearchPrecision.ToString();
}
set
{
set
{
try
{
var precisionScore = (StringMatcher.SearchPrecisionScore)Enum
@@ -92,8 +95,8 @@ namespace Wox.Infrastructure.UserSettings
StringMatcher.Instance.UserSettingSearchPrecision = StringMatcher.SearchPrecisionScore.Regular;
throw;
}
}
}
}
}
public bool AutoUpdates { get; set; } = false;
@@ -143,17 +146,20 @@ namespace Wox.Infrastructure.UserSettings
public bool HideOnStartup { get; set; }
bool _hideNotifyIcon { get; set; }
private bool _hideNotifyIcon;
public bool HideNotifyIcon
{
get { return _hideNotifyIcon; }
get
{
return _hideNotifyIcon;
}
set
{
_hideNotifyIcon = value;
OnPropertyChanged();
}
set
{
_hideNotifyIcon = value;
OnPropertyChanged();
}
}
public bool LeaveCmdOpen { get; set; }
@@ -176,7 +182,7 @@ namespace Wox.Infrastructure.UserSettings
{
Selected,
Empty,
Preserved
Preserved,
}
[Obsolete]
@@ -184,6 +190,6 @@ namespace Wox.Infrastructure.UserSettings
{
Normal = 0,
LayeredWindow = 1,
DWM = 2
DWM = 2,
}
}