add send redundant haves iow show peers our progress
This commit is contained in:
parent
49338fc5d7
commit
228597abdc
|
@ -911,7 +911,7 @@ Forced</property>
|
|||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label35">
|
||||
<widget class="GtkLabel" id="label1">
|
||||
<property name="visible">True</property>
|
||||
<property name="xalign">1</property>
|
||||
<property name="label" translatable="yes">Level:</property>
|
||||
|
@ -1751,7 +1751,7 @@ HTTP W/ Auth</property>
|
|||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label1">
|
||||
<widget class="GtkLabel" id="label2">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="label" translatable="yes">Proxy type</property>
|
||||
|
@ -2403,6 +2403,42 @@ HTTP W/ Auth</property>
|
|||
<widget class="GtkVBox" id="vbox7">
|
||||
<property name="visible">True</property>
|
||||
<property name="spacing">2</property>
|
||||
<child>
|
||||
<widget class="GtkFrame" id="frame3">
|
||||
<property name="visible">True</property>
|
||||
<property name="label_xalign">0</property>
|
||||
<property name="shadow_type">GTK_SHADOW_NONE</property>
|
||||
<child>
|
||||
<widget class="GtkAlignment" id="alignment3">
|
||||
<property name="visible">True</property>
|
||||
<property name="left_padding">12</property>
|
||||
<child>
|
||||
<widget class="GtkCheckButton" id="chk_send_redund">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="tooltip" translatable="yes">Have messages will be sent to peers that already have the piece. It adds a little overhead, but allows other clients to see our progress.</property>
|
||||
<property name="label" translatable="yes">Send Redundant Have</property>
|
||||
<property name="response_id">0</property>
|
||||
<property name="draw_indicator">True</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label36">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes"><b>Peers</b></property>
|
||||
<property name="use_markup">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="type">label_item</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkFrame" id="frame13">
|
||||
<property name="visible">True</property>
|
||||
|
@ -2548,7 +2584,7 @@ HTTP W/ Auth</property>
|
|||
</widget>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label2">
|
||||
<widget class="GtkLabel" id="label4">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes"><b>System Tray</b></property>
|
||||
<property name="use_markup">True</property>
|
||||
|
@ -2561,6 +2597,7 @@ HTTP W/ Auth</property>
|
|||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="padding">2</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
|
@ -2601,7 +2638,7 @@ HTTP W/ Auth</property>
|
|||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">1</property>
|
||||
<property name="position">2</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
|
@ -2653,7 +2690,7 @@ HTTP W/ Auth</property>
|
|||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">2</property>
|
||||
<property name="position">3</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
|
@ -2696,7 +2733,7 @@ information is sent.</property>
|
|||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">3</property>
|
||||
<property name="position">4</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
|
@ -2708,7 +2745,7 @@ information is sent.</property>
|
|||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label2">
|
||||
<widget class="GtkLabel" id="label23">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="label" translatable="yes">Other</property>
|
||||
|
@ -2838,7 +2875,7 @@ information is sent.</property>
|
|||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label23">
|
||||
<widget class="GtkLabel" id="label28">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="label" translatable="yes">Plugins</property>
|
||||
|
|
|
@ -83,6 +83,7 @@ PREF_FUNCTIONS = {
|
|||
"use_lsd" : deluge_core.use_lsd,
|
||||
"use_natpmp" : deluge_core.use_natpmp,
|
||||
"use_utpex" : deluge_core.use_utpex,
|
||||
"send_redund" : deluge_core.send_redund,
|
||||
}
|
||||
|
||||
STATE_MESSAGES = (_("Queued"),
|
||||
|
|
|
@ -2165,6 +2165,23 @@ std::cout << asctime(timeinfo) << " torrent_use_lsd()" << std::endl;
|
|||
Py_INCREF(Py_None); return Py_None;
|
||||
}
|
||||
|
||||
static PyObject *torrent_send_redund(PyObject *self, PyObject *args)
|
||||
{
|
||||
#ifdef DELUGE_CORE_DEBUG
|
||||
time_t rawtime;
|
||||
struct tm *timeinfo;
|
||||
time(&rawtime);
|
||||
timeinfo = localtime(&rawtime);
|
||||
std::cout << asctime(timeinfo) << " torrent_send_redund()" << std::endl;
|
||||
#endif
|
||||
python_long action;
|
||||
PyArg_ParseTuple(args, "i", &action);
|
||||
|
||||
M_settings->send_redundant_have = action;
|
||||
M_ses->set_settings(*M_settings);
|
||||
Py_INCREF(Py_None); return Py_None;
|
||||
}
|
||||
|
||||
static PyObject *torrent_use_natpmp(PyObject *self, PyObject *args)
|
||||
{
|
||||
#ifdef DELUGE_CORE_DEBUG
|
||||
|
@ -2662,6 +2679,7 @@ static PyMethodDef deluge_core_methods[] =
|
|||
{"set_IP_filter", torrent_set_IP_filter, METH_VARARGS, "."},
|
||||
{"use_upnp", torrent_use_upnp, METH_VARARGS, "."},
|
||||
{"use_lsd", torrent_use_lsd, METH_VARARGS, "."},
|
||||
{"send_redund", torrent_send_redund, METH_VARARGS, "."},
|
||||
{"use_natpmp", torrent_use_natpmp, METH_VARARGS, "."},
|
||||
{"use_utpex", torrent_use_utpex, METH_VARARGS, "."},
|
||||
{"set_ratio", torrent_set_ratio, METH_VARARGS, "."},
|
||||
|
|
|
@ -90,6 +90,7 @@ class PreferencesDlg:
|
|||
self.glade.get_widget("chk_web_proxy").set_active(self.preferences.get("web_proxy"))
|
||||
self.glade.get_widget("chk_upnp").set_active(self.preferences.get("use_upnp"))
|
||||
self.glade.get_widget("chk_lsd").set_active(self.preferences.get("use_lsd"))
|
||||
self.glade.get_widget("chk_send_redund").set_active(self.preferences.get("send_redund"))
|
||||
self.glade.get_widget("chk_random_port").set_active(self.preferences.get("random_port"))
|
||||
self.glade.get_widget("chk_natpmp").set_active(self.preferences.get("use_natpmp"))
|
||||
self.glade.get_widget("chk_utpex").set_active(self.preferences.get("use_utpex"))
|
||||
|
@ -209,6 +210,7 @@ class PreferencesDlg:
|
|||
self.preferences.set("web_proxy", self.glade.get_widget("chk_web_proxy").get_active())
|
||||
self.preferences.set("use_upnp", self.glade.get_widget("chk_upnp").get_active())
|
||||
self.preferences.set("use_lsd", self.glade.get_widget("chk_lsd").get_active())
|
||||
self.preferences.set("send_redund", self.glade.get_widget("chk_send_redund").get_active())
|
||||
self.preferences.set("tracker_proxy_type", self.glade.get_widget("combo_tracker_proxy_type").get_active())
|
||||
self.preferences.set("dht_proxy_type", self.glade.get_widget("combo_dht_proxy_type").get_active())
|
||||
self.preferences.set("web_proxy_type", self.glade.get_widget("combo_web_proxy_type").get_active())
|
||||
|
|
|
@ -44,6 +44,7 @@ if common.windows_check():
|
|||
"enabled_plugins" : "Torrent Files:Torrent Peers:Torrent Peers:Torrent Notification",
|
||||
"file_manager" : common.FileManager.xdg,
|
||||
"open_folder_stock" : True,
|
||||
"send_redund" : False,
|
||||
"autoload" : False,
|
||||
"open_folder_location": "",
|
||||
"send_info" : True,
|
||||
|
@ -162,6 +163,7 @@ else:
|
|||
"enabled_plugins" : "Torrent Files:Torrent Peers:Torrent Notification",
|
||||
"file_manager" : common.FileManager.xdg,
|
||||
"open_folder_stock" : True,
|
||||
"send_redund" : False,
|
||||
"autoload" : False,
|
||||
"open_folder_location": "",
|
||||
"send_info" : True,
|
||||
|
|
Loading…
Reference in New Issue