Skip to content

Commit

Permalink
Fix before the early release
Browse files Browse the repository at this point in the history
  • Loading branch information
WXRIW committed Sep 7, 2022
1 parent 32f451b commit db16a49
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
25 changes: 15 additions & 10 deletions Ink Canvas/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,16 +315,21 @@ private void Window_Loaded(object sender, RoutedEventArgs e)
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 Alhua"))
// {
// WelcomeWindow.IsNewBuilding = true;
// }
// new WelcomeWindow().ShowDialog();
//}
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();
}
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);
Expand Down
2 changes: 1 addition & 1 deletion Ink Canvas/WelcomeWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs
}
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);

Expand Down

0 comments on commit db16a49

Please sign in to comment.