eric7/UI/UserInterface.py

branch
eric7
changeset 8571
eb2b840bbf8f
parent 8553
10d31e5ce9e5
child 8580
e91b276e0771
equal deleted inserted replaced
8570:65ec02bfa9d2 8571:eb2b840bbf8f
7339 the configuration dialog is shown. 7339 the configuration dialog is shown.
7340 """ 7340 """
7341 if not Preferences.isConfigured(): 7341 if not Preferences.isConfigured():
7342 self.__initDebugToolbarsLayout() 7342 self.__initDebugToolbarsLayout()
7343 7343
7344 EricMessageBox.information( 7344 if Preferences.hasEric6Configuration():
7345 self, 7345 yes = EricMessageBox.yesNo(
7346 self.tr("First time usage"), 7346 self,
7347 self.tr("""eric has not been configured yet. """ 7347 self.tr("First time usage"),
7348 """The configuration dialog will be started.""")) 7348 self.tr("eric7 has not been configured yet but an eric6"
7349 " configuration was found. Shall this be"
7350 " imported?"),
7351 yesDefault=True
7352 )
7353 if yes:
7354 Preferences.importEric6Configuration()
7355 else:
7356 EricMessageBox.information(
7357 self,
7358 self.tr("First time usage"),
7359 self.tr("""eric has not been configured yet. """
7360 """The configuration dialog will be started."""))
7361
7349 self.showPreferences() 7362 self.showPreferences()
7363 Preferences.setConfigured()
7350 7364
7351 def checkProjectsWorkspace(self): 7365 def checkProjectsWorkspace(self):
7352 """ 7366 """
7353 Public method to check, if a projects workspace has been configured. If 7367 Public method to check, if a projects workspace has been configured. If
7354 it has not, a dialog is shown. 7368 it has not, a dialog is shown.

eric ide

mercurial