Skip to content

Commit

Permalink
Merge pull request #36 from arthurits/version-1.5
Browse files Browse the repository at this point in the history
ErgoLux 1.5
  • Loading branch information
arthurits authored Apr 22, 2023
2 parents 5ddc4ba + 9252574 commit c5c86a6
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# ErgoLux changelog

## ErgoLux 1.5
* Add Turkish (tr-TR) translation. _Thanks barisceliker1_.
* Add Turkish (tr-TR) translation. _Thanks @barisceliker1_.
* [ScottPlot](https://github.com/ScottPlot/ScottPlot) control has been updated to version 4.1.63.
* Improve controls placement in Settings for all available languages.
* Fix code when closing the application.
* Fix bug: culture in StringResources is not reset after cancelling dialog.
* Refactor references to the resource file.

## ErgoLux 1.4
Expand Down
2 changes: 1 addition & 1 deletion ErgoLux/ErgoLux.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ If you find this software useful, please consider supporting it!</Description>
<RepositoryUrl>https://github.com/arthurits/ErgoLux</RepositoryUrl>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Version>1.4</Version>
<Version>1.5</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
5 changes: 5 additions & 0 deletions ErgoLux/FrmLanguage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ private void Accept_Click(object sender, EventArgs e)

private void Cancel_Click(object sender, EventArgs e)
{
if (Settings is not null)
StringResources.Culture = Settings.AppCulture;
else
StringResources.Culture = CultureInfo.InvariantCulture;

DialogResult = DialogResult.Cancel;
}

Expand Down
6 changes: 6 additions & 0 deletions ErgoLux/FrmSettings.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using FTD2XX_NET;
using System.Globalization;
using System.Text.RegularExpressions;

namespace ErgoLux;

Expand Down Expand Up @@ -318,6 +319,11 @@ private void Reset_Click(object sender, EventArgs e)

private void Cancel_Click(object sender, EventArgs e)
{
if (Settings is not null)
StringResources.Culture = Settings.AppCulture;
else
StringResources.Culture = CultureInfo.InvariantCulture;

DialogResult = DialogResult.Cancel;
}

Expand Down
Binary file modified ErgoLux/images/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c5c86a6

Please sign in to comment.