mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 08:58:38 +00:00
Fix adding torrents when not showing the add torrent dialog in Windows
This commit is contained in:
parent
60fdcb3bd8
commit
6e695d8410
2 changed files with 3 additions and 2 deletions
|
@ -5,8 +5,9 @@
|
||||||
* Fix torrent name being blank when renaming root folder to /
|
* Fix torrent name being blank when renaming root folder to /
|
||||||
|
|
||||||
==== GtkUI ====
|
==== GtkUI ====
|
||||||
* replace & with & in the details tab to ensure there are no markup errors
|
* Replace & with & in the details tab to ensure there are no markup errors
|
||||||
* Consider 0 unlimited when displaying limits in the statusbar
|
* Consider 0 unlimited when displaying limits in the statusbar
|
||||||
|
* Fix adding torrents when not showing the add torrent dialog in Windows
|
||||||
|
|
||||||
==== Web ====
|
==== Web ====
|
||||||
* Fix #1046 changing auto managed via the details tab
|
* Fix #1046 changing auto managed via the details tab
|
||||||
|
|
|
@ -163,4 +163,4 @@ def process_args(args):
|
||||||
component.get("AddTorrentDialog").show(config["focus_add_dialog"])
|
component.get("AddTorrentDialog").show(config["focus_add_dialog"])
|
||||||
else:
|
else:
|
||||||
path = os.path.abspath(arg)
|
path = os.path.abspath(arg)
|
||||||
client.core.add_torrent_file(os.path.split(path)[-1], base64.encodestring(open(path).read()), None)
|
client.core.add_torrent_file(os.path.split(path)[-1], base64.encodestring(open(path, "rb").read()), None)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue