mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
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:
@@ -33,7 +33,7 @@ namespace Wox.Infrastructure.UserSettings
|
||||
ID = metadata.ID,
|
||||
Name = metadata.Name,
|
||||
ActionKeywords = metadata.ActionKeywords,
|
||||
Disabled = metadata.Disabled
|
||||
Disabled = metadata.Disabled,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user