Skip to content

Commit

Permalink
Version 3.16.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaskohl committed May 16, 2022
1 parent b88a9f4 commit 53d0cac
Show file tree
Hide file tree
Showing 21 changed files with 1,343 additions and 393 deletions.
2 changes: 1 addition & 1 deletion CapsLockIndicatorV3/CapsLockIndicatorV3.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<Prefer32Bit>false</Prefer32Bit>
<PlatformTarget>AnyCPU</PlatformTarget>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<DefineConstants>TRACE;DEBUG;TEST_EOL</DefineConstants>
<DefineConstants>TRACE;DEBUG;TEST_EOL_</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<Prefer32Bit>false</Prefer32Bit>
Expand Down
442 changes: 223 additions & 219 deletions CapsLockIndicatorV3/MainForm.Designer.cs

Large diffs are not rendered by default.

23 changes: 18 additions & 5 deletions CapsLockIndicatorV3/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -431,21 +431,31 @@ private void CheckSupport()
var ub = new UriBuilder(URLs.ClientSupported);
var qb = new QueryBuilder();
#if DEBUG
qb.Append("v", "dev");
qb.Append("e", "debug");
#else
qb.Append("v", version);
qb.Append("e", "release");
#endif
qb.Append("w", GetOSVersion());
qb.Append("c", version);
qb.Append("o", GetOSBuildVersion());
ub.Query = qb.ToString();

var wc = new WebClient();
wc.DownloadStringCompleted += Wc_DownloadStringCompleted;
wc.DownloadStringAsync(ub.Uri);
}

private string GetOSBuildVersion()
{
return string.Join(".", new[]
{
Environment.OSVersion.Version.Major.ToString(),
Environment.OSVersion.Version.Minor.ToString(),
Environment.OSVersion.Version.Build.ToString()
});
}

private void Wc_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
{
(sender as WebClient)?.Dispose();

try
{
Expand All @@ -468,7 +478,9 @@ private void Wc_DownloadStringCompleted(object sender, DownloadStringCompletedEv
tableLayoutPanel3.Visible = true;
}
}
catch { }
catch(Exception ex) { MessageBox.Show(ex.ToString()); }

(sender as WebClient)?.Dispose();
}

private void ApplyEOLStrings()
Expand Down Expand Up @@ -1099,6 +1111,7 @@ void handleVersion(string xmlData)
void doVersionCheck(bool isManualCheck)
{
VersionCheck.IsLatestVersion(handleVersion, isManualCheck);
CheckSupport();
}

void MainFormLoad(object sender, EventArgs e)
Expand Down
4 changes: 2 additions & 2 deletions CapsLockIndicatorV3/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,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("3.16.0.0")]
[assembly: AssemblyFileVersion("3.16.0.0")]
[assembly: AssemblyVersion("3.16.1.0")]
[assembly: AssemblyFileVersion("3.16.1.0")]
[assembly: Guid ("6f54c357-0542-4d7d-9225-338bc3cd7834")]
2 changes: 1 addition & 1 deletion CapsLockIndicatorV3/URLs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ static class URLs
public const string IconGalleryMeta = ServiceEndpointBase + "icongallery/getmeta.php";
public const string IconGalleryDownload = ServiceEndpointBase + "icongallery/";
public const string IconGallery = ServiceEndpointBase + "icongallery/embedded.php";
public const string ClientSupported = ServiceEndpointBase + "clientsupported";
public const string ClientSupported = ServiceEndpointBase + "eolcheck";
public const string VersionCheck = ServiceEndpointBase + "!/version?details&xml&newClient3=true";
}
}
85 changes: 85 additions & 0 deletions CapsLockIndicatorV3/strings.ar.resx
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,48 @@
<value>كاب لوك</value>
<comment>The name of the caps lock key</comment>
</data>

<!--
<data name="cbPersistentCapsOff" xml:space="preserve">
<value>Off</value>
<comment>Label for caps lock off checkbox in persistent overlay section</comment>
</data>
-->

<!--
<data name="cbPersistentCapsOn" xml:space="preserve">
<value>On</value>
<comment>Label for caps lock on checkbox in persistent overlay section</comment>
</data>
-->

<!--
<data name="cbPersistentNumOff" xml:space="preserve">
<value>Off</value>
<comment>Label for num lock off checkbox in persistent overlay section</comment>
</data>
-->

<!--
<data name="cbPersistentNumOn" xml:space="preserve">
<value>On</value>
<comment>Label for num lock on checkbox in persistent overlay section</comment>
</data>
-->

<!--
<data name="cbPersistentScrollOff" xml:space="preserve">
<value>Off</value>
<comment>Label for scroll lock off checkbox in persistent overlay section</comment>
</data>
-->

<!--
<data name="cbPersistentScrollOn" xml:space="preserve">
<value>On</value>
<comment>Label for scroll lock on checkbox in persistent overlay section</comment>
</data>
-->
<data name="checkForUpdates" xml:space="preserve">
<value>التحقق من وجود تحديثات</value>
<comment>The caption for the button that manually checks for updates. The character after the "&amp;" is the hotkey that is used with the ALT key.</comment>
Expand Down Expand Up @@ -377,10 +419,53 @@
<value>بشكل دائم</value>
<comment>Text to display instead of the time if indicator overlay display is set to permanently.</comment>
</data>

<!--
<data name="persistentCapsLabel" xml:space="preserve">
<value>...Caps lock is</value>
<comment>Label for caps lock row in persistent overlay section</comment>
</data>
-->

<!--
<data name="persistentHeadingLabel" xml:space="preserve">
<value>Show persistent overlay when...</value>
<comment>Heading for persistent overlay section</comment>
</data>
-->

<!--
<data name="persistentNumLabel" xml:space="preserve">
<value>...Num lock is</value>
<comment>Label for num lock row in persistent overlay section</comment>
</data>
-->

<!--
<data name="persistentScrollLabel" xml:space="preserve">
<value>...Scroll lock is</value>
<comment>Label for scroll lock row in persistent overlay section</comment>
</data>
-->
<data name="reloadedIconsInfo" xml:space="preserve">
<value>إعادة تحميل الرموز</value>
<comment>Shown in a notification when hot-reloading icons.</comment>
</data>

<!--
<data name="resetSettings" xml:space="preserve">
<value>Reset settings</value>
<comment>Used for the "Reset settings" button</comment>
</data>
-->

<!--
<data name="resetSettingsConfirmationText" xml:space="preserve">
<value>This will reset all settings to their default values and restart CapsLock Indicator. All customisation will be lost! This cannot be undone!
Do you want to reset all settings now?</value>
<comment>Used for the confirmation prompt after clicking "Reset settings"</comment>
</data>
-->
<data name="restart" xml:space="preserve">
<value>إعادة تشغيل</value>
<comment>Generic label for Restart button</comment>
Expand Down
Loading

0 comments on commit 53d0cac

Please sign in to comment.