mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 04:24:27 +00:00
Fix move storage dialog not closing
This commit is contained in:
parent
8920db694c
commit
bd119bccf4
@ -356,6 +356,7 @@ class MenuBar(component.Component):
|
||||
def on_dialog_response_event(widget, response_id):
|
||||
def on_core_result(result):
|
||||
# Delete references
|
||||
self.move_storage_dialog.hide()
|
||||
del self.move_storage_dialog
|
||||
del self.move_storage_dialog_hbox
|
||||
|
||||
@ -366,7 +367,6 @@ class MenuBar(component.Component):
|
||||
client.core.move_storage(
|
||||
component.get("TorrentView").get_selected_torrents(), path
|
||||
).addCallback(on_core_result)
|
||||
self.move_storage_dialog.hide()
|
||||
|
||||
self.move_storage_dialog.connect("response", on_dialog_response_event)
|
||||
self.move_storage_dialog.show()
|
||||
|
Loading…
x
Reference in New Issue
Block a user