Skip to content

Commit

Permalink
Prepare for release 0.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
SioGabx committed May 6, 2023
1 parent 095a648 commit c35a077
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 22 deletions.
4 changes: 2 additions & 2 deletions MapsInMyFolder.Common/Country.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private static string getCountryFromCultureName(string Name)

public static class CountryExtensions
{
public static bool Contains(this IEnumerable<Country> countries ,string EnglishCountryName)
public static bool Contains(this IEnumerable<Country> countries, string EnglishCountryName)
{
foreach (Country country in countries)
{
Expand All @@ -86,7 +86,7 @@ public static bool Contains(this IEnumerable<Country> countries ,string EnglishC
}
}
return false;
}
}
}


Expand Down
21 changes: 3 additions & 18 deletions MapsInMyFolder.Common/Database.cs
Original file line number Diff line number Diff line change
Expand Up @@ -648,9 +648,6 @@ public static void CheckForMissingCollumns()
ExecuteNonQuerySQLCommand(SQLExecute.ToString());
}




public static void Export(string FilePath)
{
StringBuilder SQLExecute = new StringBuilder();
Expand Down Expand Up @@ -748,7 +745,6 @@ public static void Export(string FilePath)
}
ValuesList["VERSION"] = IntLayerVersion++.ToString();
}

}
}
string Values = '\'' + string.Join("','", ValuesList.Values) + '\'';
Expand All @@ -761,7 +757,7 @@ public static void Export(string FilePath)
}

int user_version = ExecuteDirectScalarSQLCommand("PRAGMA user_version;");
SQLExecute.AppendLine($"PRAGMA user_version={(user_version + 1)};");
SQLExecute.AppendLine($"PRAGMA user_version={user_version + 1};");
SQLExecute.AppendLine("COMMIT;");

if (FilePath.EndsWith(".txt"))
Expand All @@ -777,9 +773,9 @@ public static void Export(string FilePath)
}
else
{
if (System.IO.File.Exists(FilePath))
if (File.Exists(FilePath))
{
System.IO.File.Delete(FilePath);
File.Delete(FilePath);
}
using (SQLiteConnection sqlite_conn = new SQLiteConnection("Data Source=" + FilePath + "; Version = 3; New = True; Compress = True;"))
{
Expand All @@ -790,18 +786,7 @@ public static void Export(string FilePath)
sqlite_cmd.ExecuteNonQuery();
}
}

}


}








}
}
2 changes: 1 addition & 1 deletion MapsInMyFolder.Setup/Product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<?include $(sys.CURRENTDIR)Files.wxi ?>

<!--DONT FORGET TO CHANGE THE VERSION NUMER HERE AND IN MAPSINMYFOLDER.CSPROJ-->
<Product Id="*" Name="MapsInMyFolder" Language="1033" Version="0.4.3" Manufacturer="SioGabx" UpgradeCode="091b4d98-0e03-441f-8e40-acb9706db235">
<Product Id="*" Name="MapsInMyFolder" Language="1033" Version="0.4.4" Manufacturer="SioGabx" UpgradeCode="091b4d98-0e03-441f-8e40-acb9706db235">
<Package InstallerVersion="200" Compressed="yes" InstallPrivileges="elevated" AdminImage="yes" Manufacturer="SioGabx" Description="Ce programme permet l'installation de MapsInMyFolder" Comments="Ce programme permet l'installation de MapsInMyFolder" /><!--InstallScope="perUser"-->
<Media Id="1" Cabinet="MyCabFile.cab" EmbedCab="yes"/>

Expand Down
2 changes: 1 addition & 1 deletion MapsInMyFolder/MapsInMyFolder.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<ApplicationIcon>icone\icone_v2.ico</ApplicationIcon>
<RepositoryUrl>https://github.com/SioGabx/MapsInMyFolder</RepositoryUrl>
<Copyright>SioGabx</Copyright>
<Version>0.4.3-alpha</Version>
<Version>0.4.4-alpha</Version>
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
</PropertyGroup>

Expand Down

0 comments on commit c35a077

Please sign in to comment.