Remove "Show packages to be upgraded" when no update is needed
authorlittlesat <littlesat99@yahoo.com>
Thu, 2 Apr 2015 17:49:25 +0000 (19:49 +0200)
committerlittlesat <littlesat99@yahoo.com>
Thu, 2 Apr 2015 17:49:25 +0000 (19:49 +0200)
Thanks Taapat for reporting

lib/python/Screens/SoftwareUpdate.py

index 0bd3cdd..836bce2 100644 (file)
@@ -197,14 +197,14 @@ class UpdatePlugin(Screen):
                                                message += " " + _("Reflash recommended!")
                                        choices = [(_("Update and reboot (recommended)"), "cold"),
                                                (_("Update and ask to reboot"), "hot"),
-                                               (_("Update channel list only"), "channels")]
+                                               (_("Update channel list only"), "channels"),
+                                               (_("Show packages to be upgraded"), "showlist")]
                                else:
                                        message = _("No updates available")
                                        choices = []
                                if fileExists("/home/root/ipkgupgrade.log"):
                                        choices.append((_("Show latest upgrade log"), "log"))
-                               choices += [(_("Show latest commits on sourceforge"), "commits"),
-                                       (_("Show packages to be upgraded"), "showlist")]
+                               choices.append((_("Show latest commits on sourceforge"), "commits"))
                                if not config.usage.show_update_disclaimer.value:
                                        choices.append((_("Show disclaimer"), "disclaimer"))
                                choices.append((_("Cancel"), ""))