eric6/Plugins/WizardPlugins/DotDesktopWizard/DotDesktopWizardDialog.py

changeset 8222
5994b80b8760
parent 8218
7c09585bd960
diff -r 0572a215bd2f -r 5994b80b8760 eric6/Plugins/WizardPlugins/DotDesktopWizard/DotDesktopWizardDialog.py
--- a/eric6/Plugins/WizardPlugins/DotDesktopWizard/DotDesktopWizardDialog.py	Sun Apr 11 16:53:48 2021 +0200
+++ b/eric6/Plugins/WizardPlugins/DotDesktopWizard/DotDesktopWizardDialog.py	Sun Apr 11 18:45:10 2021 +0200
@@ -190,10 +190,12 @@
                 code.append('X-KDE-PluginInfo-EnabledByDefault=true')
         
         # step 2b: Unity entries
-        if self.typeComboBox.currentIndex() == 2:
-            if self.unityShortcutsEdit.text():
-                code.append('X-Ayatana-Desktop-Shortcuts=' +
-                            self.unityShortcutsEdit.text())
+        if (
+            self.typeComboBox.currentIndex() == 2 and
+            self.unityShortcutsEdit.text()
+        ):
+            code.append('X-Ayatana-Desktop-Shortcuts=' +
+                        self.unityShortcutsEdit.text())
         
         # step 3: action entries
         actions = [act for act in self.actionsEdit.text().split(";") if act]

eric ide

mercurial