Exemple #1
0
	def hidePlugin(self):
		try:
			from Plugins.Extensions.PluginHider.plugin import hidePlugin
		except Exception as e:
			self.session.open(MessageBox, _("Unable to load PluginHider"), MessageBox.TYPE_ERROR)
		else:
			hidePlugin(self["pluginlist"].current[0])

			# we were actually in move mode, so save the current position
			if self.selected != -1:
				self.save()
			self.updateList()
Exemple #2
0
	def hidePlugin(self):
		try:
			from Plugins.Extensions.PluginHider.plugin import hidePlugin
		except Exception as e:
			self.session.open(MessageBox, _("Unable to load PluginHider"), MessageBox.TYPE_ERROR)
		else:
			hidePlugin(self["pluginlist"].current[0])

			# we were actually in move mode, so save the current position
			if self.selected != -1:
				self.save()
			self.updateList()
Exemple #3
0
        )

    def menuCallback(self, ret):
        ret and ret[1]()

    def openMover(self, where):
        self.session.open(SortingPluginBrowser, where=where)

    def hidePlugin(self):
        try:
            from Plugins.Extensions.PluginHider.plugin import hidePlugin
        except Exception, e:
            self.session.open(MessageBox, _("Unable to load PluginHider"),
                              MessageBox.TYPE_ERROR)
        else:
            hidePlugin(self["list"].l.getCurrentSelection()[0])

            # we were actually in move mode, so save the current position
            if self.selected != -1:
                self.save()
            self.updateList()

    def toggleMoveMode(self):
        if self.movemode:
            if self.selected != -1:
                self.save()
            if fileExists(
                    resolveFilename(
                        SCOPE_PLUGINS,
                        "SystemPlugins/SoftwareManager/plugin.py")):
                self["green"].setText(_("Sort"))
			list = list,
		)

	def menuCallback(self, ret):
		ret and ret[1]()

	def openMover(self, where):
		self.session.open(SortingPluginBrowser, where=where)

	def hidePlugin(self):
		try:
			from Plugins.Extensions.PluginHider.plugin import hidePlugin
		except Exception, e:
			self.session.open(MessageBox, _("Unable to load PluginHider"), MessageBox.TYPE_ERROR)
		else:
			hidePlugin(self["list"].l.getCurrentSelection()[0])

			# we were actually in move mode, so save the current position
			if self.selected != -1:
				self.save()
			self.updateList()

	def toggleMoveMode(self):
		if self.movemode:
			if self.selected != -1:
				self.save()
			if fileExists(resolveFilename(SCOPE_PLUGINS, "SystemPlugins/SoftwareManager/plugin.py")):
				self["green"].setText(_("Sort"))

			for plugin in self.pluginlist:
				pluginWeights.set(plugin)