quicker window shutdown

This commit is contained in:
Marcos Pinto 2007-11-02 20:00:58 +00:00
parent 3610c30a25
commit a09c03dafd
1 changed files with 4 additions and 4 deletions

View File

@ -1584,15 +1584,15 @@ want to remove all seeding torrents?")):
self.save_window_settings()
self.save_tabs_order()
gtk.main_quit()
self.config.set('enabled_plugins', enabled_plugins)
self.config.save()
self.plugins.shutdown_all_plugins()
#for the sake of windows, hide tray_icon
for torrent in self.manager.get_queue():
unique_id = self.manager.get_torrent_unique_id(torrent)
trackerslist = self.manager.get_trackers(unique_id)
self.manager.unique_IDs[unique_id].trackers = trackerslist
enabled_plugins = ':'.join(self.plugins.get_enabled_plugins())
self.config.set('enabled_plugins', enabled_plugins)
self.config.save()
self.plugins.shutdown_all_plugins()
#for the sake of windows, hide tray_icon
self.tray_icon.set_visible(False)
self.manager.quit()