diff options
author | Matias Wilkman <matias.wilkman@gmail.com> | 2021-02-15 14:07:01 -0500 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2021-10-03 19:34:09 +0100 |
commit | d56636426e061931fdf58118487705f9746fa3fe (patch) | |
tree | bc8eda7630128f7f04296ef13cae9177fec1fb2f /deluge/ui/gtk3/glade/preferences_dialog.ui | |
parent | de4fbd2e8223031484d439ca99bce89785ea5db3 (diff) | |
download | deluge-d56636426e061931fdf58118487705f9746fa3fe.tar.gz deluge-d56636426e061931fdf58118487705f9746fa3fe.tar.bz2 deluge-d56636426e061931fdf58118487705f9746fa3fe.zip |
[GTKUI] Added detection of torrent URL on GTK UI focus
In case deluge GTK gets focus with a new torrent URL on the clipboard,
the "Add Torrent from URL" dialog will pop up automatically
Closes: deluge-torrent/deluge#306
Diffstat (limited to 'deluge/ui/gtk3/glade/preferences_dialog.ui')
-rw-r--r-- | deluge/ui/gtk3/glade/preferences_dialog.ui | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/deluge/ui/gtk3/glade/preferences_dialog.ui b/deluge/ui/gtk3/glade/preferences_dialog.ui index 4cfceddcf..4b223cb44 100644 --- a/deluge/ui/gtk3/glade/preferences_dialog.ui +++ b/deluge/ui/gtk3/glade/preferences_dialog.ui @@ -479,6 +479,23 @@ </packing> </child> <child> + <object class="GtkCheckButton" id="urldetect_toggle"> + <property name="label" translatable="yes">Detect torrent URLs from clipboard</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="tooltip_text" translatable="yes">Automatically open Add Torrent dialog when clipboard contains a torrent URL</property> + <property name="halign">start</property> + <property name="draw_indicator">True</property> + <signal name="toggled" handler="on_urldetect_toggle_toggled" swapped="no"/> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">2</property> + </packing> + </child> + <child> <object class="GtkCheckButton" id="piecesbar_toggle"> <property name="visible">True</property> <property name="can_focus">True</property> @@ -501,7 +518,7 @@ and daemon (does not apply in Standalone mode).</property> <packing> <property name="expand">True</property> <property name="fill">True</property> - <property name="position">2</property> + <property name="position">3</property> </packing> </child> <child> @@ -697,7 +714,7 @@ and daemon (does not apply in Standalone mode).</property> <packing> <property name="expand">False</property> <property name="fill">False</property> - <property name="position">3</property> + <property name="position">4</property> </packing> </child> </object> |