quicker window shutdown
This commit is contained in:
parent
3610c30a25
commit
a09c03dafd
|
@ -1584,15 +1584,15 @@ want to remove all seeding torrents?")):
|
||||||
self.save_window_settings()
|
self.save_window_settings()
|
||||||
self.save_tabs_order()
|
self.save_tabs_order()
|
||||||
gtk.main_quit()
|
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():
|
for torrent in self.manager.get_queue():
|
||||||
unique_id = self.manager.get_torrent_unique_id(torrent)
|
unique_id = self.manager.get_torrent_unique_id(torrent)
|
||||||
trackerslist = self.manager.get_trackers(unique_id)
|
trackerslist = self.manager.get_trackers(unique_id)
|
||||||
self.manager.unique_IDs[unique_id].trackers = trackerslist
|
self.manager.unique_IDs[unique_id].trackers = trackerslist
|
||||||
enabled_plugins = ':'.join(self.plugins.get_enabled_plugins())
|
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.tray_icon.set_visible(False)
|
||||||
self.manager.quit()
|
self.manager.quit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue