Skip to content

Commit

Permalink
Fix close
Browse files Browse the repository at this point in the history
  • Loading branch information
C1rdec committed Jun 8, 2023
1 parent 21c0812 commit efd1faa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions LilithLurker/LilithLurker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
<ImplicitUsings>disable</ImplicitUsings>
<UseWPF>true</UseWPF>
<ApplicationIcon>Lilith.ico</ApplicationIcon>
<PublishSingleFile>true</PublishSingleFile>
<SelfContained>true</SelfContained>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>

</PropertyGroup>

<ItemGroup>
Expand Down
6 changes: 6 additions & 0 deletions LilithLurker/ViewModels/ShellViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ public async void Close()
_overlayViewModel = null;
}

if (_lilithViewModel != null )
{
await _lilithViewModel.TryCloseAsync();
_lilithViewModel = null;
}

await TryCloseAsync();
}

Expand Down

0 comments on commit efd1faa

Please sign in to comment.