diff --git a/OWTrack/Form1.cs b/OWTrack/Form1.cs
index 6224511..6e598b1 100644
--- a/OWTrack/Form1.cs
+++ b/OWTrack/Form1.cs
@@ -18,17 +18,18 @@ namespace OWTrack
InitializeComponent();
loadSave();
checkStatus();
- label4.Text = Program.version.ToString();
- Text = "OWTrack " + Program.version.ToString();
+ update();
+ label4.Text = Program.Version.ToString();
+ Text = "OWTrack " + Program.Version.ToString();
}
private void checkStatus()
- {
- Time.Text = DateTime.Now.ToString("h:mm tt");
- status.Text = NOT_RUNNING;
- status.ForeColor = Color.Red;
+ {
try
{
+ Time.Text = DateTime.Now.ToString("h:mm tt");
+ status.Text = NOT_RUNNING;
+ status.ForeColor = Color.Red;
if (tr.owRunning())
{
status.Text = IS_RUNNING;
@@ -75,7 +76,7 @@ namespace OWTrack
}
}
- void getGamePath()
+ private void getGamePath()
{
openFileDialog1.Title = "Select Overwatch.exe";
openFileDialog1.DefaultExt = "exe";
@@ -86,7 +87,6 @@ namespace OWTrack
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
tr.gamePath = openFileDialog1.FileName;
- MessageBox.Show(openFileDialog1.FileName);
}
}
diff --git a/OWTrack/OWTrack.csproj b/OWTrack/OWTrack.csproj
index 15c722e..e87106e 100644
--- a/OWTrack/OWTrack.csproj
+++ b/OWTrack/OWTrack.csproj
@@ -22,7 +22,7 @@
false
false
true
- 12
+ 13
1.2.3.%2a
false
true
diff --git a/OWTrack/Program.cs b/OWTrack/Program.cs
index 845a11e..13aad28 100644
--- a/OWTrack/Program.cs
+++ b/OWTrack/Program.cs
@@ -11,7 +11,6 @@ namespace OWTrack
{
static class Program
{
- //public static string Version = Application.ProductVersion;
///
/// The main entry point for the application.
///
@@ -22,6 +21,10 @@ namespace OWTrack
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
- public static Version version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
+
+ public static string Version = "1.2.3";
+ //public static string Version = Application.ProductVersion;
+ //public static Version version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
+
}
}