mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 09:28:03 +08:00
fix a null references issues.
This commit is contained in:
parent
a7b3ef34d8
commit
69890972bc
@ -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)
|
||||
|
@ -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"
|
||||
});
|
||||
|
@ -100,14 +100,6 @@ namespace Wox.Plugin.System
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
#if (DEBUG)
|
||||
{
|
||||
MessageBox.Show("load chrome bookmark failed");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
private String DecodeUnicode(String dataStr)
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user