Add some workarounds for clean environment.

This commit is contained in:
Yeechan Lu
2014-01-26 01:24:24 +08:00
parent 8644fb66c0
commit 71ec4ad403
3 changed files with 19 additions and 9 deletions

View File

@@ -39,11 +39,17 @@ namespace WinAlfred
hook.RegisterHotKey(XModifierKeys.Alt, Keys.Space);
resultCtrl.resultItemChangedEvent += resultCtrl_resultItemChangedEvent;
ThreadPool.SetMaxThreads(30, 10);
InitProgressbarAnimation();
ChangeStyles(Settings.Instance.Theme);
InitProgressbarAnimation();
try
{
ChangeStyles(Settings.Instance.Theme);
}
catch (System.IO.IOException)
{
ChangeStyles(Settings.Instance.Theme = "Default");
}
}
private void WakeupApp()