Add new version window

This commit is contained in:
qianlifeng
2014-12-16 23:29:25 +08:00
parent 6c94c3aa7b
commit 3e5288836d
5 changed files with 84 additions and 2 deletions

View File

@@ -203,7 +203,11 @@ namespace Wox
Release release = new UpdateChecker().CheckUpgrade();
if (release != null && !UserSettingStorage.Instance.DontPromptUpdateMsg)
{
ShowMsg(string.Format("New version {0} available!",release.version),string.Empty,string.Empty);
Dispatcher.Invoke(new Action(() =>
{
NewVersionWindow newVersinoWindow = new NewVersionWindow();
newVersinoWindow.Show();
}));
}
}