Skip to content

Commit

Permalink
Fix PushBullet integration
Browse files Browse the repository at this point in the history
  • Loading branch information
C1rdec committed Dec 5, 2024
1 parent 20864f6 commit b910573
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/PoeLurker.Core/PoeLurker.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<PackageReference Include="HtmlAgilityPack" Version="1.11.71" />
<PackageReference Include="NAudio" Version="2.2.1" />
<PackageReference Include="NLog" Version="5.3.4" />
<PackageReference Include="PoeLurker.Patreon" Version="8.0.13" />
<PackageReference Include="PoeLurker.Patreon" Version="8.0.16" />
<PackageReference Include="ProcessLurker" Version="8.0.0" />
<PackageReference Include="SharpClipboard" Version="3.5.2" />
<PackageReference Include="TextCopy" Version="6.2.1" />
Expand Down
2 changes: 1 addition & 1 deletion src/PoeLurker.UI/PoeLurker.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
<PackageReference Include="NLog" Version="5.3.4" />
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.15" />
<PackageReference Include="PixiEditor.ColorPicker" Version="3.4.1" />
<PackageReference Include="PoeLurker.Patreon" Version="8.0.13" />
<PackageReference Include="PoeLurker.Patreon" Version="8.0.16" />
<PackageReference Include="System.Private.Uri" Version="4.3.2" />
<PackageReference Include="Velopack" Version="0.0.942" />
</ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion src/PoeLurker.UI/ViewModels/PushBulletViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,12 @@ public int Threshold
public async void Login()
{
await _service.CheckPledgeStatus();
await _service.Login();
if (_service.Connected)
{
var devices = await _service.GetDevices();
devices = devices.Where(d => d.Active);
if (devices.Any() && _service.Device.Id == null)
if (devices.Any() && _service.Device?.Id == null)
{
var firstDevice = devices.First();
_service.SelectDevice(firstDevice);
Expand Down

0 comments on commit b910573

Please sign in to comment.