Skip to content

Commit

Permalink
Update GWCA module (#819)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexMacocian authored Sep 27, 2024
1 parent ce5e348 commit 79fca84
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Daybreak/Controls/Templates/GuildwarsPathTemplate.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)

private async void ExecutablePath_PropertyChanged(object? sender, System.ComponentModel.PropertyChangedEventArgs e)
{
if (this.DataContext is not ExecutablePath executablePath)
if (this.DataContext is not ExecutablePath)
{
return;
}
Expand Down
3 changes: 0 additions & 3 deletions Daybreak/Controls/Templates/TradeChatTemplate.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,9 @@ namespace Daybreak.Controls.Templates;
public partial class TradeChatTemplate : UserControl
{
private readonly TimeSpan timeUpdateInterval = TimeSpan.FromSeconds(1);
private readonly object collectionLock = new();
private readonly DispatcherTimer dispatcherTimer = new();
private readonly IWordHighlightingService wordHighlightingService;
private CancellationTokenSource? cancellationTokenSource;
private DateTime? lastQueryTime;
private DateTime nextQueryTime = DateTime.Now;

public event EventHandler<TraderMessage>? NameCopyClicked, MessageCopyClicked, TimestampCopyClicked;

Expand Down
2 changes: 1 addition & 1 deletion Daybreak/Daybreak.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
<PackageReference Include="SystemExtensions.NetCore" Version="1.6.9" />
<PackageReference Include="SystemExtensions.NetStandard" Version="1.6.9" />
<PackageReference Include="SystemExtensions.NetStandard.DependencyInjection" Version="1.4.1" />
<PackageReference Include="SystemExtensions.NetStandard.DependencyInjection" Version="1.6.9" />
<PackageReference Include="WpfExtended" Version="0.7.7" />
<PackageReference Include="WpfExtended.SourceGeneration" Version="0.3.0" />
<PackageReference Include="WpfScreenHelper" Version="2.1.1" />
Expand Down
3 changes: 0 additions & 3 deletions Daybreak/Exceptions/CredentialsNotFoundException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ public CredentialsNotFoundException(string message) : base(message)
{
}

public CredentialsNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}

public CredentialsNotFoundException(string message, Exception innerException) : base(message, innerException)
{
Expand Down
3 changes: 0 additions & 3 deletions Daybreak/Exceptions/ExecutableNotFoundException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ public ExecutableNotFoundException(string message) : base(message)
{
}

public ExecutableNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}

public ExecutableNotFoundException(string message, Exception innerException) : base(message, innerException)
{
Expand Down
4 changes: 0 additions & 4 deletions Daybreak/Exceptions/FatalException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ public FatalException(string message) : base(message)
{
}

public FatalException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}

public FatalException(string message, Exception innerException) : base(message, innerException)
{
}
Expand Down
1 change: 1 addition & 0 deletions Daybreak/Services/Credentials/CredentialManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using Convert = System.Convert;

namespace Daybreak.Services.Credentials;

Expand Down
1 change: 1 addition & 0 deletions Daybreak/Services/Graph/GraphClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
using System.Threading.Tasks;
using System.Web;
using System.Windows.Controls;
using Convert = System.Convert;

namespace Daybreak.Services.Graph;

Expand Down
2 changes: 1 addition & 1 deletion Daybreak/Services/UBlockOrigin/UBlockOriginService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public Task<string> GetExtensionPath()
return Task.FromResult(Path.GetFullPath(Path.Combine(InstallationPath, InstallationFolderName)));
}

private async Task CheckAndUpdateInternal(string browserVersion)
private async Task CheckAndUpdateInternal(string _)
{
var scopedLogger = this.logger.CreateScopedLogger(nameof(this.CheckAndUpdateInternal), string.Empty);
if (VersionUpToDate)
Expand Down
2 changes: 1 addition & 1 deletion GWCA
Submodule GWCA updated from 2e2bf3 to a0e632

0 comments on commit 79fca84

Please sign in to comment.