macOS: Fix crash when importing using NoTunnelsDetailVC's button
This commit is contained in:
parent
592ea5cfca
commit
d056732e27
|
@ -40,6 +40,7 @@ class NoTunnelsDetailViewController: NSViewController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func importTunnelClicked() {
|
@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