Fix before the early release

This commit is contained in:
XY Wang 2022-09-07 14:14:21 +08:00
parent 32f451bdd7
commit db16a4947b
2 changed files with 15 additions and 10 deletions

View File

@ -315,16 +315,21 @@ namespace Ink_Canvas
lastVersion = File.ReadAllText(System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase + "Versions.ini");
}
catch { }
//if (response.Contains("Special Version") && !lastVersion.Contains("3.2.5.0"))
//{
// LogHelper.WriteLogToFile("Welcome Window Show Dialog (Second time)", LogHelper.LogType.Event);
if (response.Contains("Special Version") && !lastVersion.Contains("NewWelcomeConfigured"))
{
LogHelper.WriteLogToFile("Welcome Window Show Dialog (Second time)", LogHelper.LogType.Event);
// if (response.Contains("Special Version Alhua"))
// {
// WelcomeWindow.IsNewBuilding = true;
// }
// new WelcomeWindow().ShowDialog();
//}
if (response.Contains("Special Version Alhua"))
{
WelcomeWindow.IsNewBuilding = true;
}
new WelcomeWindow().ShowDialog();
}
try
{
lastVersion = File.ReadAllText(System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase + "Versions.ini");
}
catch { }
if (!lastVersion.Contains(version.ToString()))
{
LogHelper.WriteLogToFile("Change Log Window Show Dialog", LogHelper.LogType.Event);

View File

@ -73,7 +73,7 @@ namespace Ink_Canvas
}
catch { }
str = (str + "\n" + Assembly.GetExecutingAssembly().GetName().Version.ToString()).Trim();
str = (str + "\n" + Assembly.GetExecutingAssembly().GetName().Version.ToString() + "\n" + "NewWelcomeConfigured").Trim();
File.WriteAllText("versions.ini", str);
Process.Start(System.Windows.Forms.Application.ExecutablePath);