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 file in files:
if file.endswith(".pdb") or file.endswith(".xml"):
if file.endswith(".xml"):
path = os.path.join(root, file)
print "delete file:" + path
os.remove(path)

View File

@ -248,7 +248,7 @@ namespace Wox.Plugin.PluginManagement
{
results.Add(new Result()
{
Title = plugin.Name,
Title = plugin.Name + " - " + plugin.ActionKeyword,
SubTitle = plugin.Description,
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)

View File

@ -343,6 +343,8 @@ namespace Wox
public void OnUpdateResultView(List<Result> list)
{
if (list == null) return;
queryHasReturn = true;
progressBar.Dispatcher.Invoke(new Action(StopProgress));
if (list.Count > 0)
@ -370,7 +372,7 @@ namespace Wox
{
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();
@ -435,6 +437,6 @@ namespace Wox
#endregion
}
}