from ..network import AddConnectorsDialog


def run_add_connectors(qgis_project):
    if qgis_project.project is None:
        qgis_project.iface.messageBar().pushMessage("Error", "You need to load a project first", level=3, duration=10)
        return
    dlg2 = AddConnectorsDialog(qgis_project)
    dlg2.show()
    dlg2.exec_()
