eric6/PluginManager/PluginRepositoryDialog.py

changeset 8234
fcb6b4b96274
parent 8222
5994b80b8760
child 8259
2bbec88047dd
diff -r bad78a592cc2 -r fcb6b4b96274 eric6/PluginManager/PluginRepositoryDialog.py
--- a/eric6/PluginManager/PluginRepositoryDialog.py	Tue Apr 13 17:49:05 2021 +0200
+++ b/eric6/PluginManager/PluginRepositoryDialog.py	Tue Apr 13 18:02:59 2021 +0200
@@ -236,10 +236,7 @@
             return
         
         url = current.data(0, PluginRepositoryWidget.UrlRole)
-        if url is None:
-            url = ""
-        else:
-            url = self.__changeScheme(url)
+        url = "" if url is None else self.__changeScheme(url)
         self.urlEdit.setText(url)
         self.descriptionEdit.setPlainText(
             current.data(0, PluginRepositoryWidget.DescrRole) and
@@ -345,10 +342,8 @@
         self.__downloadButton.setEnabled(len(self.__selectedItems()))
         self.__downloadInstallButton.setEnabled(len(self.__selectedItems()))
         self.__installButton.setEnabled(len(self.__selectedItems()))
-        if not self.__external:
-            ui = e5App().getObject("UserInterface")
-        else:
-            ui = None
+        ui = (e5App().getObject("UserInterface")
+              if not self.__external else None)
         if ui is not None:
             ui.showNotification(
                 UI.PixmapCache.getPixmap("plugin48"),

eric ide

mercurial