optimize<Launcher>: show launcher after all pre-opened pages ready

This commit is contained in:
leo 2021-07-06 13:04:19 +08:00
parent f6c17e7d34
commit a4997249cb

View file

@ -71,7 +71,6 @@ namespace SourceGit {
// 主界面显示
MainWindow = new Views.Launcher();
MainWindow.Show();
// 如果启动命令中指定了路径,打开指定目录的仓库
if (e.Args.Length > 0) {
@ -99,6 +98,8 @@ namespace SourceGit {
}
}
MainWindow.Show();
// 检测更新
if (Models.Preference.Instance.General.CheckForUpdate) {
var curDayOfYear = DateTime.Now.DayOfYear;