mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-11 10:56:39 +00:00
Removed some stale code in interface's update().
This commit is contained in:
parent
2463828170
commit
0a59338936
@ -901,16 +901,12 @@ class DelugeGTK:
|
|||||||
torrent_selection.select_path("0")
|
torrent_selection.select_path("0")
|
||||||
selection_count = 1
|
selection_count = 1
|
||||||
|
|
||||||
unique_id = None
|
|
||||||
if selection_count == 1:
|
if selection_count == 1:
|
||||||
unique_id = self.get_selected_torrent()
|
unique_id = self.get_selected_torrent()
|
||||||
self.update_torrent_info_widget(unique_id)
|
self.update_torrent_info_widget(unique_id)
|
||||||
else: # selection_count > 1
|
else: # selection_count > 1
|
||||||
self.clear_details_pane()
|
self.clear_details_pane()
|
||||||
|
|
||||||
# Update tool buttons below based on the first selected torrent's state
|
|
||||||
path = torrent_selection.get_selected_rows()[1][0]
|
|
||||||
unique_id = self.torrent_model.get_value(self.torrent_model.get_iter(path), 0)
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def update_statusbar_and_tray(self):
|
def update_statusbar_and_tray(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user