minor stuff
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michele Scandura 2021-09-16 15:32:16 +01:00
parent 4179143fdb
commit 8c6df57fb1

View File

@ -9,9 +9,10 @@ namespace Sledgemapper.UI
{
public partial class CampaignList
{
private readonly CommunicationManager CommunicationManager;
private readonly TinyMessengerHub Messenger;
private bool campaignSelected;
private CommunicationManager CommunicationManager { get; }
private TinyMessengerHub Messenger { get; }
private bool _campaignSelected;
public CampaignList(CommunicationManager communicationManager, TinyMessengerHub messenger)
{
@ -27,9 +28,9 @@ namespace Sledgemapper.UI
BtnLoadCampaign.Click += (s, e) =>
{
if (campaignSelected)
if (_campaignSelected)
{
campaignSelected = false;
_campaignSelected = false;
Messenger.Publish(new CampaignSelectedMessage(this));
this.GetContainingWindow().Close();
}
@ -63,7 +64,7 @@ namespace Sledgemapper.UI
currentItem.Background = new SolidBrush("#D9D9D9FF");
}
item.Background = new SolidBrush(Settings.Instance.OverlayTintColor);
campaignSelected = true;
_campaignSelected = true;
}
public async Task LoadCampaigns()