automatically paste clipboard contents on 'add url'
This commit is contained in:
parent
b5fa8939e4
commit
77fca5a1c0
|
@ -1086,6 +1086,9 @@ class DelugeGTK:
|
|||
entry = gtk.Entry()
|
||||
dlg.vbox.pack_start(label)
|
||||
dlg.vbox.pack_start(entry)
|
||||
clip = gtk.clipboard_get(selection='PRIMARY')
|
||||
text = clip.wait_for_text()
|
||||
entry.set_text(text)
|
||||
dlg.show_all()
|
||||
result = dlg.run()
|
||||
url = entry.get_text()
|
||||
|
|
Loading…
Reference in New Issue