Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Rookiestyle committed Jan 26, 2022
1 parent 45f0755 commit 37975d6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/PluginUpdateInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -729,13 +729,13 @@ private void UpdateAvailableTranslations()
{
//Github: <Plugin>!<language identifier>
string[] sParts = uci.Name.Split(cSplit, StringSplitOptions.RemoveEmptyEntries);
if (sParts.Length == 1 && Name == sParts[0])
if (sParts.Length == 1 && Title == sParts[0])
{
vCheck = new Version(StrUtil.VersionToString(uci.VerAvailable, 2));
if (VersionAvailableIsUnknown()) VersionAvailable = vCheck;
}
if (!IsRenamed && !PluginUpdateHandler.VersionsEqual(VersionInstalled, vCheck)) return; //Different version might require different translation files
if (sParts.Length != 2 || sParts[0] != Name) continue;
if (!IsRenamed && vCheck != null && !PluginUpdateHandler.VersionsEqual(VersionInstalled, vCheck)) return; //Different version might require different translation files
if (sParts.Length != 2 || sParts[0] != Title) continue;
long lVer = 0;
if (!long.TryParse(StrUtil.VersionToString(uci.VerAvailable), out lVer)) continue;
string sLang = Name + "." + sParts[1].ToLowerInvariant() + ".language.xml";
Expand Down Expand Up @@ -763,6 +763,7 @@ private void CheckRenamed(Dictionary<string, List<UpdateComponentInfo>> m_dUpdat
if (uciRename == null) continue;
string[] sParts = uciRename.Name.Split(cSplit, StringSplitOptions.RemoveEmptyEntries);
if (sParts.Length != 2) continue;
if (Title == sParts[1]) return;
IsRenamed = true;
NewName = sParts[1];
PluginDebug.AddInfo("New plugin name detected", 0, "Old: " + Name, "New: " + NewName);
Expand Down
4 changes: 2 additions & 2 deletions src/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("4.0.0.0")]
[assembly: AssemblyFileVersion("4.0.0.0")]
[assembly: AssemblyVersion("4.1.0.0")]
[assembly: AssemblyFileVersion("4.1.0.0")]
[assembly: Guid("672570AF-CC57-4980-86F9-D48FD1CC707D")]
2 changes: 1 addition & 1 deletion version.info
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:
Early update check:4.0
Early update check:4.1
Early update check!de:7
Early update check!ru:2
Early update check!fr:1
Expand Down

0 comments on commit 37975d6

Please sign in to comment.