From 8ca5682449e0dd4c93b2f2db2f2ae45a52a9cf8f Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 19 Jun 2008 21:55:00 +0000 Subject: [PATCH] Update toolbar buttons on torrentview update --- deluge/ui/gtkui/torrentview.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deluge/ui/gtkui/torrentview.py b/deluge/ui/gtkui/torrentview.py index 47d3c2911..460b47c14 100644 --- a/deluge/ui/gtkui/torrentview.py +++ b/deluge/ui/gtkui/torrentview.py @@ -328,6 +328,9 @@ class TorrentView(listview.ListView, component.Component): except: pass + # Update the toolbar buttons just in case some state has changed + component.get("ToolBar").update_buttons() + def _on_get_torrents_status(self, status): """Callback function for get_torrents_status(). 'status' should be a dictionary of {torrent_id: {key, value}}."""