Skip to content

Commit

Permalink
added reading of ACS-VERSION from asterics.ini again
Browse files Browse the repository at this point in the history
Unfortunately lost the code in another branch
  • Loading branch information
Martin Deinhofer committed May 4, 2020
1 parent dfeb232 commit 1dbe2e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ACS/ACS/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public partial class MainWindow {

#region Global variables

public const String ACS_VERSION="4.1";
public static String ACS_VERSION="4.x";
private double mouseMoveComponentX;
private double mouseMoveComponentY;

Expand Down Expand Up @@ -265,6 +265,8 @@ public MainWindow() {
//ACS.Properties.Resources.Culture = System.Threading.Thread.CurrentThread.CurrentCulture;
InitializeComponent();

//Read ACS_VERSION string from asterics.ini first.
ACS_VERSION = ini.IniReadValue("Options", "ACS_VERSION");
Title = "AsTeRICS Configuration Suite " + ACS_VERSION;
// Remove the original default trace listener and add a new one (for logging exceptions)
traceListener = new FileLogTraceListener();
Expand Down
1 change: 1 addition & 0 deletions ACS/ACS/asterics.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ useAppDataFolder=false
ACSManualURL=https://www.asterics.eu/manuals/ACS/
pluginHelpBaseURL=https://www.asterics.eu/plugins/
helpBrowserCommand=explorer
ACS_VERSION=#{APPLICATION_VERSION_NUMBER}#
Binary file modified bin/ACS/ACS.exe
Binary file not shown.

0 comments on commit 1dbe2e7

Please sign in to comment.