diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2009-02-16 00:09:14 +0100 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2009-02-16 00:09:14 +0100 |
| commit | 3e46901a0472e305c311d8d1faa499fed24b7ed8 (patch) | |
| tree | 1aba05baf0f4790c8536c59fa7fb05e38a1dea1e | |
| parent | a09b990fc3c223363ba9901392d7f100be034568 (diff) | |
| parent | f03b3cf5c0e903a01853ba292ea1b0f01ceafbbb (diff) | |
| download | enigma2-3e46901a0472e305c311d8d1faa499fed24b7ed8.tar.gz enigma2-3e46901a0472e305c311d8d1faa499fed24b7ed8.zip | |
Merge branch 'master' of /home/tmbinc/enigma2-git
| -rwxr-xr-x[-rw-r--r--] | lib/python/Components/Console.py | 9 | ||||
| -rwxr-xr-x | lib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py | 15 |
2 files changed, 21 insertions, 3 deletions
diff --git a/lib/python/Components/Console.py b/lib/python/Components/Console.py index f1f3fd95..a41317ea 100644..100755 --- a/lib/python/Components/Console.py +++ b/lib/python/Components/Console.py @@ -55,3 +55,12 @@ class Console(object): if self.callbacks[name]: self.callbacks[name](data,retval,extra_args) del self.callbacks[name] + + def kill(self,name): + if name in self.appContainers: + print "[Console] killing: ",self.appContainers[name] + self.appContainers[name].kill() + + def killAll(self): + for name in self.appContainers: + self.kill(name) diff --git a/lib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py b/lib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py index 3215dbce..d8ccd5a5 100755 --- a/lib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py +++ b/lib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py @@ -16,6 +16,7 @@ from Components.config import config,getConfigListEntry, ConfigSubsection, Confi from Components.Console import Console from Components.MultiContent import MultiContentEntryText, MultiContentEntryPixmapAlphaTest from Components.SelectionList import SelectionList +from Components.PluginComponent import plugins from Tools.Directories import fileExists, resolveFilename, SCOPE_PLUGINS, SCOPE_SKIN_IMAGE from Tools.LoadPixmap import LoadPixmap from enigma import eTimer, quitMainloop, RT_HALIGN_LEFT, RT_VALIGN_CENTER, eListboxPythonMultiContent, eListbox, gFont @@ -324,8 +325,8 @@ class PacketManager(Screen): self["shortcuts"] = ActionMap(["ShortcutActions", "WizardActions"], { "ok": self.go, - "back": self.close, - "red": self.close, + "back": self.exit, + "red": self.exit, "green": self.reload, }, -1) @@ -350,7 +351,15 @@ class PacketManager(Screen): self.ipkg.addCallback(self.ipkgCallback) self.onShown.append(self.setWindowTitle) self.onLayoutFinish.append(self.rebuildList) - self.onClose.append(self.cleanup) + #self.onClose.append(self.cleanup) + + def exit(self): + self.ipkg.stop() + if self.Console is not None: + if len(self.Console.appContainers): + for name in self.Console.appContainers.keys(): + self.Console.kill(name) + self.close() def cleanup(self): self.ipkg.stop() |
