src/eric7/UI/UserInterface.py

branch
eric7
changeset 9559
34fc53e6159d
parent 9548
2d2a91757852
child 9573
9960d19d66b5
equal deleted inserted replaced
9558:6d6a0e5f65ca 9559:34fc53e6159d
663 self.pluginManager.initPluginToolbars(self.toolbarManager) 663 self.pluginManager.initPluginToolbars(self.toolbarManager)
664 if Preferences.getPluginManager("StartupCleanup"): 664 if Preferences.getPluginManager("StartupCleanup"):
665 splash.showMessage(self.tr("Cleaning Plugins Download Area...")) 665 splash.showMessage(self.tr("Cleaning Plugins Download Area..."))
666 PluginRepositoryDownloadCleanup(quiet=True) 666 PluginRepositoryDownloadCleanup(quiet=True)
667 667
668 if self.__findFileWidget:
669 self.__findFileWidget.populateFileCategories()
670
668 # now read the keyboard shortcuts for all the actions 671 # now read the keyboard shortcuts for all the actions
669 Shortcuts.readShortcuts() 672 Shortcuts.readShortcuts()
670 673
671 # restore toolbar manager state 674 # restore toolbar manager state
672 splash.showMessage(self.tr("Restoring Toolbarmanager...")) 675 splash.showMessage(self.tr("Restoring Toolbarmanager..."))
700 703
701 # now start the debug client with the most recently used virtual 704 # now start the debug client with the most recently used virtual
702 # environment 705 # environment
703 splash.showMessage(self.tr("Starting Debugger...")) 706 splash.showMessage(self.tr("Starting Debugger..."))
704 if Preferences.getShell("StartWithMostRecentlyUsedEnvironment"): 707 if Preferences.getShell("StartWithMostRecentlyUsedEnvironment"):
705 venvName=Preferences.getShell("LastVirtualEnvironment") 708 venvName = Preferences.getShell("LastVirtualEnvironment")
706 if venvName == "embedded environment": 709 if venvName == "embedded environment":
707 venvName = "" 710 venvName = ""
708 self.__debugServer.startClient(False, venvName=venvName) 711 self.__debugServer.startClient(False, venvName=venvName)
709 else: 712 else:
710 self.__debugServer.startClient(False) 713 self.__debugServer.startClient(False)
5545 self.lToolboxDock.show() 5548 self.lToolboxDock.show()
5546 self.lToolbox.setCurrentWidget(self.projectBrowser) 5549 self.lToolbox.setCurrentWidget(self.projectBrowser)
5547 elif self.__layoutType == "Sidebars": 5550 elif self.__layoutType == "Sidebars":
5548 self.leftSidebar.show() 5551 self.leftSidebar.show()
5549 self.leftSidebar.setCurrentWidget(self.projectBrowser) 5552 self.leftSidebar.setCurrentWidget(self.projectBrowser)
5550 self.projectBrowser.currentWidget().setFocus( 5553 if self.projectBrowser.currentWidget() is not None:
5551 Qt.FocusReason.ActiveWindowFocusReason 5554 self.projectBrowser.currentWidget().setFocus(
5552 ) 5555 Qt.FocusReason.ActiveWindowFocusReason
5556 )
5553 5557
5554 def __activateMultiProjectBrowser(self): 5558 def __activateMultiProjectBrowser(self):
5555 """ 5559 """
5556 Private slot to handle the activation of the project browser. 5560 Private slot to handle the activation of the project browser.
5557 """ 5561 """
7950 del self.__pluginInstallDialog 7954 del self.__pluginInstallDialog
7951 self.__restart(ask=True) 7955 self.__restart(ask=True)
7952 7956
7953 self.pluginRepositoryViewer.reloadList() 7957 self.pluginRepositoryViewer.reloadList()
7954 7958
7959 if self.__findFileWidget:
7960 self.__findFileWidget.populateFileCategories()
7961 if self.__findFileDialog:
7962 self.__findFileDialog.populateFileCategories()
7963
7955 def __deinstallPlugin(self): 7964 def __deinstallPlugin(self):
7956 """ 7965 """
7957 Private slot to show a dialog to uninstall a plugin. 7966 Private slot to show a dialog to uninstall a plugin.
7958 """ 7967 """
7959 from eric7.PluginManager.PluginUninstallDialog import PluginUninstallDialog 7968 from eric7.PluginManager.PluginUninstallDialog import PluginUninstallDialog
7960 7969
7961 dlg = PluginUninstallDialog(self.pluginManager, self) 7970 dlg = PluginUninstallDialog(self.pluginManager, self)
7962 dlg.exec() 7971 dlg.exec()
7972
7973 if self.__findFileWidget:
7974 self.__findFileWidget.populateFileCategories()
7975 if self.__findFileDialog:
7976 self.__findFileDialog.populateFileCategories()
7963 7977
7964 @pyqtSlot() 7978 @pyqtSlot()
7965 def __showPluginsAvailable(self): 7979 def __showPluginsAvailable(self):
7966 """ 7980 """
7967 Private slot to show the plugins available for download. 7981 Private slot to show the plugins available for download.

eric ide

mercurial