mirror of
https://github.com/passepartoutvpn/wireguard-apple.git
synced 2025-01-18 22:39:08 +00:00
macOS: Fix crash when importing using NoTunnelsDetailVC's button
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
e812683d6c
commit
d37e230ee0
@ -40,6 +40,7 @@ class NoTunnelsDetailViewController: NSViewController {
|
||||
}
|
||||
|
||||
@objc func importTunnelClicked() {
|
||||
ImportPanelPresenter.presentImportPanel(tunnelsManager: tunnelsManager, sourceVC: self)
|
||||
// We pass sourceVC as parent instead of self because this VC will not be visible when the import completes
|
||||
ImportPanelPresenter.presentImportPanel(tunnelsManager: tunnelsManager, sourceVC: parent)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user