mirror of
https://github.com/transmission/transmission.git
synced 2026-04-18 07:56:33 +01:00
refactor: rename unreleased quarks to snake_case (#7483)
* refactor: rename `sequentialDownload` to `sequential_download` * refactor: rename `beginPiece` to `begin_piece` * refactor: rename `endPiece` to `end_piece` * refactor: rename `ipProtocol` to `ip_protocol` * refactor: rename `preferred-transport` to `preferred_transport`
This commit is contained in:
@@ -56,12 +56,12 @@ export class PrefsDialog extends EventTarget {
|
||||
}
|
||||
}
|
||||
|
||||
_onPortChecked(ipProtocol, response) {
|
||||
_onPortChecked(ip_protocol, response) {
|
||||
if (this.closed) {
|
||||
return;
|
||||
}
|
||||
|
||||
const element = this.elements.network.port_status_label[ipProtocol];
|
||||
const element = this.elements.network.port_status_label[ip_protocol];
|
||||
const is_open = response.arguments['port-is-open'] || false;
|
||||
element.dataset.open = is_open;
|
||||
if ('port-is-open' in response.arguments) {
|
||||
|
||||
@@ -89,10 +89,10 @@ export class Remote {
|
||||
this.sendRequest(o, callback, context);
|
||||
}
|
||||
|
||||
checkPort(ipProtocol, callback, context) {
|
||||
checkPort(ip_protocol, callback, context) {
|
||||
const o = {
|
||||
arguments: {
|
||||
ipProtocol,
|
||||
ip_protocol,
|
||||
},
|
||||
method: 'port-test',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user