Skip to content

Commit 02b1ce2

Browse files
author
Albert Møller Nielsen
committed
Fixed the updater in hotfix 1.0.2 (broken before)
1 parent 8109ad4 commit 02b1ce2

17 files changed

+14
-13
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.

AssistantComputerControl/ACC_Updater.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ public bool Check() {
2626
using (WebClient client = new WebClient()) {
2727
latestReleaseJson = client.DownloadString(releaseJsonUrl);
2828
}
29-
if (latestReleaseJson == string.Empty)
29+
if (latestReleaseJson == string.Empty) {
3030
latestReleaseJson = null;
31+
}
3132
}
3233

3334
//Check and get beta
@@ -36,7 +37,7 @@ public bool Check() {
3637
latestBetaJson = client.DownloadString(betaJsonUrl);
3738
}
3839
if (latestBetaJson == string.Empty)
39-
latestReleaseJson = null;
40+
latestBetaJson = null;
4041
}
4142

4243
if (latestReleaseJson != null || latestBetaJson != null) {
@@ -72,7 +73,7 @@ public bool Check() {
7273
newVersion = latestRelease;
7374
} else {
7475
//Not new, move on
75-
MainProgram.DoDebug("Software up to date");
76+
MainProgram.DoDebug("Software up to date :D");
7677
return false;
7778
}
7879
} else if (latestReleaseJson == null && latestBetaJson != null) {
@@ -165,4 +166,4 @@ private static void FileDownloadedCallback(object sender, AsyncCompletedEventArg
165166
}
166167
}
167168
}
168-
}
169+
}

AssistantComputerControl/AboutVersion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ public string AssemblyCompany {
8080
}
8181
#endregion
8282
}
83-
}
83+
}

AssistantComputerControl/AdvancedSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ private void shouldIEditLink_LinkClicked(object sender, LinkLabelLinkClickedEven
6464
Process.Start("https://github.com/AlbertMN/AssistantComputerControl/wiki/Application-advanced-settings-expert-setup");
6565
}
6666
}
67-
}
67+
}

AssistantComputerControl/AssistantComputerControl.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
66
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
77
<ProjectGuid>{404B42F4-E135-4D2F-8FD0-20A590814930}</ProjectGuid>
8-
<OutputType>Exe</OutputType>
8+
<OutputType>WinExe</OutputType>
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>AssistantComputerControl</RootNamespace>
1111
<AssemblyName>AssistantComputerControl</AssemblyName>

AssistantComputerControl/GettingStarted.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,4 +309,4 @@ private void skipGuide_LinkClicked(object sender, LinkLabelLinkClickedEventArgs
309309
Close();
310310
}
311311
}
312-
}
312+
}

AssistantComputerControl/MainProgram.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class MainProgram {
1616
public const string softwareVersion = "1.0.2",
1717
releaseDate = "2018-07-21 21:19",
1818
appName = "AssistantComputerControl";
19-
static public bool debug = true,
19+
static public bool debug = false,
2020
unmuteVolumeChange = true,
2121
isPerformingAction = false,
2222
isCheckingForUpdate = false,
@@ -392,4 +392,4 @@ public static void ShowGettingStarted() {
392392
}
393393
}
394394
}
395-
}
395+
}

AssistantComputerControl/SettingsForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,4 @@ private void doSetupAgain_Click(object sender, EventArgs e) {
152152
MainProgram.ShowGettingStarted();
153153
}
154154
}
155-
}
155+
}

0 commit comments

Comments
 (0)