cleanup and sentry integration
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
98e5f6bc89
commit
b671c661a7
21 changed files with 89 additions and 88 deletions
|
@ -1,19 +1,19 @@
|
|||
using Microsoft.AspNetCore.SignalR.Client;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Content;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Myra.Graphics2D.Brushes;
|
||||
using Myra.Graphics2D.TextureAtlases;
|
||||
using Myra.Graphics2D.UI;
|
||||
using Myra.Graphics2D.UI.File;
|
||||
using Myra.Graphics2D.UI.Properties;
|
||||
using Newtonsoft.Json;
|
||||
using Sentry;
|
||||
using Sledgemapper.Messages;
|
||||
using Sledgemapper.Shared.Entities;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using TinyMessenger;
|
||||
using Session = Sledgemapper.Shared.Entities.Session;
|
||||
|
||||
namespace Sledgemapper.UI
|
||||
{
|
||||
|
@ -21,18 +21,15 @@ namespace Sledgemapper.UI
|
|||
{
|
||||
private readonly CommunicationManager CommunicationManager;
|
||||
|
||||
private Settings _settings;
|
||||
private readonly TinyMessengerHub _messenger;
|
||||
|
||||
private readonly GameWindow Window;
|
||||
|
||||
public MainWidget(CommunicationManager communicationManager, Settings settings, TinyMessengerHub messenger, GameWindow window)
|
||||
public MainWidget(CommunicationManager communicationManager, TinyMessengerHub messenger, GameWindow window)
|
||||
{
|
||||
BuildUI();
|
||||
|
||||
CommunicationManager = communicationManager;
|
||||
|
||||
_settings = settings;
|
||||
Window = window;
|
||||
_messenger = messenger;
|
||||
MenuConnectLogin.Selected += OnMenuConnectLoginSelected;
|
||||
|
@ -271,7 +268,7 @@ namespace Sledgemapper.UI
|
|||
{
|
||||
var propertyGrid = new PropertyGrid
|
||||
{
|
||||
Object = _settings,
|
||||
Object = Settings.Instance,
|
||||
Width = 350
|
||||
};
|
||||
|
||||
|
@ -379,7 +376,7 @@ namespace Sledgemapper.UI
|
|||
Title = "Campaigns"
|
||||
};
|
||||
|
||||
var content = new CampaignList(CommunicationManager, window, _messenger, _settings, Desktop);
|
||||
var content = new CampaignList(CommunicationManager, window, _messenger, Settings.Instance, Desktop);
|
||||
await content.LoadCampaigns();
|
||||
|
||||
window.Content = content;
|
||||
|
@ -398,7 +395,7 @@ namespace Sledgemapper.UI
|
|||
var currentItem = list.GetChild(i) as HorizontalStackPanel;// UI.ListItem;
|
||||
currentItem.Background = new SolidBrush("#D9D9D9FF");
|
||||
}
|
||||
item.Background = new SolidBrush(_settings.OverlayTintColor);
|
||||
item.Background = new SolidBrush(Settings.Instance.OverlayTintColor);
|
||||
}
|
||||
|
||||
private async void OnMenuCampaignPlayersSelected(object sender, EventArgs e)
|
||||
|
@ -550,7 +547,7 @@ namespace Sledgemapper.UI
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Sentry.SentrySdk.CaptureException(ex);
|
||||
SentrySdk.CaptureException(ex);
|
||||
}
|
||||
localContent.Window.Close();
|
||||
|
||||
|
@ -626,7 +623,7 @@ namespace Sledgemapper.UI
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
//ExceptionlessClient.Default.SubmitException(ex);
|
||||
SentrySdk.CaptureException(ex);
|
||||
}
|
||||
|
||||
localWindow.Close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue