fix a null references issues.

This commit is contained in:
qianlifeng
2014-03-16 22:51:50 +08:00
parent a7b3ef34d8
commit 69890972bc
4 changed files with 6 additions and 12 deletions

View File

@@ -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)

View File

@@ -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"
}); });

View File

@@ -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)

View File

@@ -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)