PluginInstaller. select root iter after treeview filled.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
[info]
|
||||
name: Plugin Installer
|
||||
short_name: plugin_installer
|
||||
version: 0.6
|
||||
version: 0.7
|
||||
description: Install and upgrade plugins from ftp
|
||||
authors: Denis Fomin <fominde@gmail.com>
|
||||
Yann Leboulanger <asterix@lagaule.org>
|
||||
|
||||
@@ -372,6 +372,10 @@ class PluginInstaller(GajimPlugin):
|
||||
pass
|
||||
return plugins_found
|
||||
|
||||
def select_root_iter(self):
|
||||
selection = self.available_treeview.get_selection()
|
||||
selection.select_iter(self.available_plugins_model.get_iter_root())
|
||||
|
||||
|
||||
class Ftp(threading.Thread):
|
||||
def __init__(self, plugin):
|
||||
@@ -446,6 +450,7 @@ class Ftp(threading.Thread):
|
||||
if self.remote_dirs:
|
||||
self.download_plugin()
|
||||
gobject.idle_add(self.progressbar.hide)
|
||||
gobject.idle_add(self.plugin.select_root_iter)
|
||||
except Exception, e:
|
||||
self.window.emit('error_signal', str(e))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user