Skip to content

Commit

Permalink
Resolves #4
Browse files Browse the repository at this point in the history
  • Loading branch information
tiuub committed Feb 22, 2021
1 parent aba8769 commit 534cab2
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
/.vs/*
/*/bin/*
/*/obj/*
makeplgx.bat
1 change: 1 addition & 0 deletions KP2faChecker/Forms/KP2faC_SearchForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion KP2faChecker/KP2faC_FileloaderAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ public async Task<string> GetJsonAsync(getJsonMode mode = getJsonMode.None)
await Task.Delay(1000);
if (mode == getJsonMode.Offline || (mode != getJsonMode.Online && await TestOfflineFileAsync()))
{
return await GetOfflineJsonFileAsync();
string json = await GetOfflineJsonFileAsync();
if (json.StartsWith("null"))
return await GetJsonAsync(getJsonMode.Online);
else
return json;
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion KP2faChecker/KP2faCheckerExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static async void init(bool refresh = false)
KP2faC_FileloaderAsync fileloader = new KP2faC_FileloaderAsync(m_config);
string json = await fileloader.GetJsonAsync();

if (!json.Equals("KP2faC API error"))
if (!json.Equals("KP2faC API error") && !json.StartsWith("null"))
{
List<KP2faC_Website> websites = JsonConvert.DeserializeObject<List<KP2faC_Website>>(json);
foreach (KP2faC_Website website in websites)
Expand Down
4 changes: 2 additions & 2 deletions KP2faChecker/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: AssemblyVersion("1.1.1.0")]
[assembly: AssemblyFileVersion("1.1.1.0")]
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
:
KP2faChecker:1.1.0.0
KP2faChecker:1.1.1.0
:

0 comments on commit 534cab2

Please sign in to comment.