summaryrefslogtreecommitdiffstats
path: root/deluge/ui/gtk3/glade/preferences_dialog.ui
diff options
context:
space:
mode:
authorMatias Wilkman <matias.wilkman@gmail.com>2021-02-15 14:07:01 -0500
committerCalum Lind <calumlind+deluge@gmail.com>2021-10-03 19:34:09 +0100
commitd56636426e061931fdf58118487705f9746fa3fe (patch)
treebc8eda7630128f7f04296ef13cae9177fec1fb2f /deluge/ui/gtk3/glade/preferences_dialog.ui
parentde4fbd2e8223031484d439ca99bce89785ea5db3 (diff)
downloaddeluge-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.ui21
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>