mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
fix a null references issues.
This commit is contained in:
@@ -4,7 +4,7 @@ ReleaseDirectory = "Release"
|
|||||||
|
|
||||||
for root, dirs, files in os.walk(ReleaseDirectory):
|
for root, dirs, files in os.walk(ReleaseDirectory):
|
||||||
for file in files:
|
for file in files:
|
||||||
if file.endswith(".pdb") or file.endswith(".xml"):
|
if file.endswith(".xml"):
|
||||||
path = os.path.join(root, file)
|
path = os.path.join(root, file)
|
||||||
print "delete file:" + path
|
print "delete file:" + path
|
||||||
os.remove(path)
|
os.remove(path)
|
||||||
|
|||||||
@@ -248,7 +248,7 @@ namespace Wox.Plugin.PluginManagement
|
|||||||
{
|
{
|
||||||
results.Add(new Result()
|
results.Add(new Result()
|
||||||
{
|
{
|
||||||
Title = plugin.Name,
|
Title = plugin.Name + " - " + plugin.ActionKeyword,
|
||||||
SubTitle = plugin.Description,
|
SubTitle = plugin.Description,
|
||||||
IcoPath = "Images\\plugin.png"
|
IcoPath = "Images\\plugin.png"
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -100,14 +100,6 @@ namespace Wox.Plugin.System
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
#if (DEBUG)
|
|
||||||
{
|
|
||||||
MessageBox.Show("load chrome bookmark failed");
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private String DecodeUnicode(String dataStr)
|
private String DecodeUnicode(String dataStr)
|
||||||
|
|||||||
@@ -343,6 +343,8 @@ namespace Wox
|
|||||||
|
|
||||||
public void OnUpdateResultView(List<Result> list)
|
public void OnUpdateResultView(List<Result> list)
|
||||||
{
|
{
|
||||||
|
if (list == null) return;
|
||||||
|
|
||||||
queryHasReturn = true;
|
queryHasReturn = true;
|
||||||
progressBar.Dispatcher.Invoke(new Action(StopProgress));
|
progressBar.Dispatcher.Invoke(new Action(StopProgress));
|
||||||
if (list.Count > 0)
|
if (list.Count > 0)
|
||||||
@@ -370,7 +372,7 @@ namespace Wox
|
|||||||
{
|
{
|
||||||
var dict = new ResourceDictionary
|
var dict = new ResourceDictionary
|
||||||
{
|
{
|
||||||
Source = new Uri(Path.Combine(Directory.GetCurrentDirectory(),"Themes\\"+themeName+".xaml") , UriKind.Absolute)
|
Source = new Uri(Path.Combine(Directory.GetCurrentDirectory(), "Themes\\" + themeName + ".xaml"), UriKind.Absolute)
|
||||||
};
|
};
|
||||||
|
|
||||||
Application.Current.Resources.MergedDictionaries.Clear();
|
Application.Current.Resources.MergedDictionaries.Clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user