mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
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:
@@ -40,8 +40,10 @@ namespace Wox.Core.Plugin
|
||||
return Execute(_startInfo);
|
||||
}
|
||||
|
||||
protected override string ExecuteContextMenu(Result selectedResult) {
|
||||
JsonRPCServerRequestModel request = new JsonRPCServerRequestModel {
|
||||
protected override string ExecuteContextMenu(Result selectedResult)
|
||||
{
|
||||
JsonRPCServerRequestModel request = new JsonRPCServerRequestModel
|
||||
{
|
||||
Method = "contextmenu",
|
||||
Parameters = new object[] { selectedResult.ContextData },
|
||||
};
|
||||
|
||||
@@ -71,7 +71,8 @@ namespace Wox.Core.Plugin
|
||||
|
||||
private string GetParameterByType(object parameter)
|
||||
{
|
||||
if (parameter == null) {
|
||||
if (parameter == null)
|
||||
{
|
||||
return "null";
|
||||
}
|
||||
if (parameter is string)
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace Wox.Core.Plugin
|
||||
|
||||
public static void ReloadData()
|
||||
{
|
||||
foreach(var plugin in AllPlugins)
|
||||
foreach (var plugin in AllPlugins)
|
||||
{
|
||||
var reloadablePlugin = plugin.Plugin as IReloadable;
|
||||
reloadablePlugin?.ReloadData();
|
||||
@@ -104,7 +104,7 @@ namespace Wox.Core.Plugin
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.Exception(nameof(PluginManager), $"Fail to Init plugin: {pair.Metadata.Name}", e);
|
||||
pair.Metadata.Disabled = true;
|
||||
pair.Metadata.Disabled = true;
|
||||
failedPlugins.Enqueue(pair);
|
||||
}
|
||||
});
|
||||
@@ -271,10 +271,10 @@ namespace Wox.Core.Plugin
|
||||
{
|
||||
GlobalPlugins.Remove(plugin);
|
||||
}
|
||||
|
||||
if(oldActionkeyword != Query.GlobalPluginWildcardSign)
|
||||
|
||||
if (oldActionkeyword != Query.GlobalPluginWildcardSign)
|
||||
NonGlobalPlugins.Remove(oldActionkeyword);
|
||||
|
||||
|
||||
|
||||
plugin.Metadata.ActionKeywords.Remove(oldActionkeyword);
|
||||
}
|
||||
|
||||
@@ -14,9 +14,10 @@ namespace Wox.Core.Resource
|
||||
|
||||
try
|
||||
{
|
||||
return (FontWeight) fontWeightConverter.ConvertFromInvariantString(value);
|
||||
return (FontWeight)fontWeightConverter.ConvertFromInvariantString(value);
|
||||
}
|
||||
catch {
|
||||
catch
|
||||
{
|
||||
return FontWeights.Normal;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user