src/eric7/UI/UserInterface.py

branch
server
changeset 10596
ea35c92a3c7c
parent 10592
2bada76be1a6
child 10598
79c6ea2cb2e7
--- a/src/eric7/UI/UserInterface.py	Mon Feb 19 19:37:00 2024 +0100
+++ b/src/eric7/UI/UserInterface.py	Thu Feb 22 16:26:46 2024 +0100
@@ -311,6 +311,10 @@
 
         splash.showMessage(self.tr("Initializing Basic Services..."))
 
+        # create the remote server interface
+        logging.debug("Creating 'eric-ide' Server Interface...")
+        self.__ericServerInterface = EricServerInterface(self)
+
         # Generate the conda interface
         logging.debug("Creating Conda Interface...")
         self.condaInterface = Conda(self)
@@ -329,7 +333,7 @@
 
         # Generate an empty project object and multi project object
         logging.debug("Creating Project Manager...")
-        self.project = Project(self)
+        self.project = Project(self, remoteServer=self.__ericServerInterface)
         ericApp().registerObject("Project", self.project)
 
         logging.debug("Creating Multi-Project Manager...")
@@ -597,6 +601,9 @@
         self.__ericServerInterface.connectionStateChanged.connect(
             self.shell.remoteConnectionChanged
         )
+        self.__ericServerInterface.connectionStateChanged.connect(
+            self.project.remoteConnectionChanged
+        )
         self.__ericServerInterface.aboutToDisconnect.connect(
             self.viewmanager.closeRemoteEditors
         )
@@ -804,15 +811,10 @@
         from .PythonAstViewer import PythonAstViewer
         from .PythonDisViewer import PythonDisViewer
 
-
-        # create the remote server interface
-        logging.debug("Creating 'eric-ide' Server Interface...")
-        self.__ericServerInterface = EricServerInterface(self)
-
         # Create the view manager depending on the configuration setting
         logging.debug("Creating Viewmanager...")
         self.viewmanager = ViewManager.factory(
-            self, self.__debugServer, self.pluginManager
+            self, self.__debugServer, self.__ericServerInterface, self.pluginManager
         )
 
         # Create previewer

eric ide

mercurial