Skip to content

Commit

Permalink
added splash screen due to long loading time.
Browse files Browse the repository at this point in the history
  • Loading branch information
BitBaboonSteve committed Jul 7, 2020
1 parent 8907797 commit c1dade3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions EVEData/EveManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1737,6 +1737,7 @@ private void InitTheraConnections()
private void InitZKillFeed()
{
ZKillFeed = new ZKillRedisQ();
ZKillFeed.VerString = VersionStr;
ZKillFeed.Initialise();
}

Expand Down
6 changes: 4 additions & 2 deletions EVEData/ZKillRedisQ.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public class ZKillRedisQ
{
private BackgroundWorker backgroundWorker;

public string VerString = "ABC123";


/// <summary>
/// Gets or sets the Stream of the last few kills from ZKillBoard
Expand Down Expand Up @@ -68,7 +70,7 @@ private async void zkb_DoWork(object sender, DoWorkEventArgs e)
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(redistURL);
request.Method = WebRequestMethods.Http.Get;
request.Timeout = 60000;
request.UserAgent = "SMT/0.82";
request.UserAgent = VerString;
request.KeepAlive = true;
request.Proxy = null;
HttpWebResponse response;
Expand All @@ -77,7 +79,7 @@ private async void zkb_DoWork(object sender, DoWorkEventArgs e)
{
response = request.GetResponse() as HttpWebResponse;
}
catch (Exception)
catch (Exception ex)
{
e.Result = -1;
return;
Expand Down
3 changes: 3 additions & 0 deletions SMT.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,9 @@
<ItemGroup>
<Resource Include="Images\fight.png" />
</ItemGroup>
<ItemGroup>
<SplashScreen Include="SplashScreen.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
Binary file added SplashScreen.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 c1dade3

Please sign in to comment.