Skip to content

Commit 37975d6

Browse files
committed
Minor improvements
1 parent 45f0755 commit 37975d6

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/PluginUpdateInfo.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -729,13 +729,13 @@ private void UpdateAvailableTranslations()
729729
{
730730
//Github: <Plugin>!<language identifier>
731731
string[] sParts = uci.Name.Split(cSplit, StringSplitOptions.RemoveEmptyEntries);
732-
if (sParts.Length == 1 && Name == sParts[0])
732+
if (sParts.Length == 1 && Title == sParts[0])
733733
{
734734
vCheck = new Version(StrUtil.VersionToString(uci.VerAvailable, 2));
735735
if (VersionAvailableIsUnknown()) VersionAvailable = vCheck;
736736
}
737-
if (!IsRenamed && !PluginUpdateHandler.VersionsEqual(VersionInstalled, vCheck)) return; //Different version might require different translation files
738-
if (sParts.Length != 2 || sParts[0] != Name) continue;
737+
if (!IsRenamed && vCheck != null && !PluginUpdateHandler.VersionsEqual(VersionInstalled, vCheck)) return; //Different version might require different translation files
738+
if (sParts.Length != 2 || sParts[0] != Title) continue;
739739
long lVer = 0;
740740
if (!long.TryParse(StrUtil.VersionToString(uci.VerAvailable), out lVer)) continue;
741741
string sLang = Name + "." + sParts[1].ToLowerInvariant() + ".language.xml";
@@ -763,6 +763,7 @@ private void CheckRenamed(Dictionary<string, List<UpdateComponentInfo>> m_dUpdat
763763
if (uciRename == null) continue;
764764
string[] sParts = uciRename.Name.Split(cSplit, StringSplitOptions.RemoveEmptyEntries);
765765
if (sParts.Length != 2) continue;
766+
if (Title == sParts[1]) return;
766767
IsRenamed = true;
767768
NewName = sParts[1];
768769
PluginDebug.AddInfo("New plugin name detected", 0, "Old: " + Name, "New: " + NewName);

src/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
//
2727
// You can specify all the values or you can use the default the Revision and
2828
// Build Numbers by using the '*' as shown below:
29-
[assembly: AssemblyVersion("4.0.0.0")]
30-
[assembly: AssemblyFileVersion("4.0.0.0")]
29+
[assembly: AssemblyVersion("4.1.0.0")]
30+
[assembly: AssemblyFileVersion("4.1.0.0")]
3131
[assembly: Guid("672570AF-CC57-4980-86F9-D48FD1CC707D")]

version.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:
2-
Early update check:4.0
2+
Early update check:4.1
33
Early update check!de:7
44
Early update check!ru:2
55
Early update check!fr:1

0 commit comments

Comments
 (0)