Dev/crutkas/fixing warnings (#5161)

* new lines & braces

* Tabs /space auto fix

Co-authored-by: Clint Rutkas <crutkas@microsoft.com>
This commit is contained in:
Clint Rutkas
2020-07-22 13:27:17 -07:00
committed by GitHub
parent 6efec9d280
commit 14247fa75a
114 changed files with 694 additions and 681 deletions

View File

@@ -17,7 +17,7 @@ namespace Wox.Plugin
public string Description { get; set; }
public string Website { get; set; }
public bool Disabled { get; set; }
public string ExecuteFilePath { get; private set;}
public string ExecuteFilePath { get; private set; }
public string ExecuteFileName { get; set; }
@@ -36,7 +36,7 @@ namespace Wox.Plugin
public List<string> ActionKeywords { get; set; }
public string IcoPath { get; set;}
public string IcoPath { get; set; }
public override string ToString()
{

View File

@@ -5,7 +5,7 @@
public IPlugin Plugin { get; internal set; }
public PluginMetadata Metadata { get; internal set; }
public override string ToString()
{

View File

@@ -14,8 +14,9 @@ namespace Wox.Plugin
private ToolTipData _toolTipData;
private string _pluginDirectory;
private string _icoPath;
public string Title {
get { return _title; }
public string Title
{
get { return _title; }
set
{
_title = value.Replace("\n", " ");

View File

@@ -70,11 +70,11 @@ namespace Wox.Plugin
{
return currentTheme;
}
private static Theme GetHighContrastBaseType()
{
string RegistryKey = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes";
string theme = (string) Registry.GetValue(RegistryKey, "CurrentTheme", string.Empty);
string theme = (string)Registry.GetValue(RegistryKey, "CurrentTheme", string.Empty);
theme = theme.Split('\\').Last().Split('.').First().ToString();
if (theme == "hc1")
@@ -153,13 +153,13 @@ namespace Wox.Plugin
protected virtual void Dispose(bool disposing)
{
if (!_disposed)
{
{
if (disposing)
{
ControlzEx.Theming.ThemeManager.Current.ThemeChanged -= Current_ThemeChanged;
SystemParameters.StaticPropertyChanged -= SystemParameters_StaticPropertyChanged;
_disposed = true;
}
}
}
}
@@ -175,8 +175,8 @@ namespace Wox.Plugin
public enum Theme
{
None,
Light,
Dark,
Light,
Dark,
HighContrastOne,
HighContrastTwo,
HighContrastBlack,

View File

@@ -9,8 +9,8 @@ namespace Wox.Plugin
public string Text { get; private set; }
public ToolTipData(string title, string text)
{
if(string.IsNullOrEmpty(title))
{
if (string.IsNullOrEmpty(title))
{
throw new ArgumentException("title cannot be null or empty", "title");
}