Skip to content
Snippets Groups Projects
Commit b0e1bbac authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

run plugin_downbloaded callback in the main thread instead of in Ftp Thread....

run plugin_downbloaded callback in the main thread instead of in Ftp Thread. Fixes freeze under windows when plugin is downloaded
parent 98432f66
No related branches found
No related tags found
No related merge requests found
......@@ -432,7 +432,8 @@ class Ftp(threading.Thread):
print 'ERROR: cannot read file "%s"' % filename
os.unlink(filename)
self.ftp.quit()
self.window.emit('plugin_downloaded', self.remote_dirs)
gobject.idle_add(self.window.emit, 'plugin_downloaded',
self.remote_dirs)
gobject.source_remove(self.pulse)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment