Skip to content

Commit

Permalink
Fix surveillance camera closing (#28374)
Browse files Browse the repository at this point in the history
The boilerplate sucks but I haven't thought of something good.
  • Loading branch information
metalgearsloth authored May 29, 2024
1 parent ca34b5d commit a90cb25
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected override void Open()
_window.OpenCentered();
_window.OnNameConfirm += SendDeviceName;
_window.OnNetworkConfirm += SendSelectedNetwork;

_window.OnClose += Close;
}

private void SendSelectedNetwork(int idx)
Expand Down Expand Up @@ -63,7 +63,8 @@ protected override void Dispose(bool disposing)

if (disposing)
{
_window!.Dispose();
_window?.Dispose();
_window = null;
}
}
}

0 comments on commit a90cb25

Please sign in to comment.