Skip to content

Commit

Permalink
Changed assembly version
Browse files Browse the repository at this point in the history
  • Loading branch information
Harabe-x committed Jan 17, 2024
1 parent 98dd4a7 commit 4352e04
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 3 additions & 3 deletions PixaiBot/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
[assembly: AssemblyInformationalVersion("1.2.0")]
[assembly: AssemblyVersion("1.3.0.0")]
[assembly: AssemblyFileVersion("1.3.0.0")]
[assembly: AssemblyInformationalVersion("1.3.0")]
11 changes: 9 additions & 2 deletions PixaiBot/Business Logic/Data Management/InitialConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static void CreateDirectories()
/// </summary>
public static void CreateConfigFile()
{
if (File.Exists(UserConfigPath)) return;


var userConfig = new UserConfig()
{
Expand All @@ -65,7 +65,14 @@ public static void CreateConfigFile()
/// </summary>
public static void CreateStatisticsFile()
{
if (File.Exists(StatisticsFilePath)) return;
if (File.Exists(StatisticsFilePath))
{
var currentStatistics = JsonReader.ReadStatisticsFile(StatisticsFilePath);
if (currentStatistics.BotVersion == BotVersion) return;
currentStatistics.BotVersion = BotVersion;
JsonWriter.WriteJson(currentStatistics, StatisticsFilePath);
return;
};

var statistics = new BotStatistics()
{
Expand Down

0 comments on commit 4352e04

Please sign in to comment.