mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-01 09:45:10 +00:00
remove bandwidth settings
This commit is contained in:
parent
0f4bc36bcd
commit
551f67bdaa
2 changed files with 119 additions and 116 deletions
|
@ -40,7 +40,7 @@ Web UI version numbers should always match the corresponding version of LBRY App
|
||||||
*
|
*
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
*
|
* Removed bandwidth caps from settings, because the daemon was not respecting them anyway.
|
||||||
*
|
*
|
||||||
|
|
||||||
## [0.13.0] - 2017-06-30
|
## [0.13.0] - 2017-06-30
|
||||||
|
|
|
@ -13,8 +13,8 @@ class SettingsPage extends React.PureComponent {
|
||||||
const { daemonSettings } = this.props;
|
const { daemonSettings } = this.props;
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
isMaxUpload: daemonSettings && daemonSettings.max_upload != 0,
|
// isMaxUpload: daemonSettings && daemonSettings.max_upload != 0,
|
||||||
isMaxDownload: daemonSettings && daemonSettings.max_download != 0,
|
// isMaxDownload: daemonSettings && daemonSettings.max_download != 0,
|
||||||
showUnavailable: lbry.getClientSetting("showUnavailable"),
|
showUnavailable: lbry.getClientSetting("showUnavailable"),
|
||||||
language: lbry.getClientSetting("language"),
|
language: lbry.getClientSetting("language"),
|
||||||
clearingCache: false,
|
clearingCache: false,
|
||||||
|
@ -55,31 +55,31 @@ class SettingsPage extends React.PureComponent {
|
||||||
this.setDaemonSetting("download_directory", event.target.value);
|
this.setDaemonSetting("download_directory", event.target.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
onMaxUploadPrefChange(isLimited) {
|
// onMaxUploadPrefChange(isLimited) {
|
||||||
if (!isLimited) {
|
// if (!isLimited) {
|
||||||
this.setDaemonSetting("max_upload", 0.0);
|
// this.setDaemonSetting("max_upload", 0.0);
|
||||||
}
|
// }
|
||||||
this.setState({
|
// this.setState({
|
||||||
isMaxUpload: isLimited,
|
// isMaxUpload: isLimited,
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
onMaxUploadFieldChange(event) {
|
// onMaxUploadFieldChange(event) {
|
||||||
this.setDaemonSetting("max_upload", Number(event.target.value));
|
// this.setDaemonSetting("max_upload", Number(event.target.value));
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
onMaxDownloadPrefChange(isLimited) {
|
// onMaxDownloadPrefChange(isLimited) {
|
||||||
if (!isLimited) {
|
// if (!isLimited) {
|
||||||
this.setDaemonSetting("max_download", 0.0);
|
// this.setDaemonSetting("max_download", 0.0);
|
||||||
}
|
// }
|
||||||
this.setState({
|
// this.setState({
|
||||||
isMaxDownload: isLimited,
|
// isMaxDownload: isLimited,
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
onMaxDownloadFieldChange(event) {
|
// onMaxDownloadFieldChange(event) {
|
||||||
this.setDaemonSetting("max_download", Number(event.target.value));
|
// this.setDaemonSetting("max_download", Number(event.target.value));
|
||||||
}
|
// }
|
||||||
|
|
||||||
onShowNsfwChange(event) {
|
onShowNsfwChange(event) {
|
||||||
this.props.setClientSetting("showNsfw", event.target.checked);
|
this.props.setClientSetting("showNsfw", event.target.checked);
|
||||||
|
@ -148,23 +148,8 @@ class SettingsPage extends React.PureComponent {
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
*/
|
*/
|
||||||
return (
|
|
||||||
<main className="main--single-column">
|
/*
|
||||||
<SubHeader />
|
|
||||||
<section className="card">
|
|
||||||
<div className="card__content">
|
|
||||||
<h3>{__("Download Directory")}</h3>
|
|
||||||
</div>
|
|
||||||
<div className="card__content">
|
|
||||||
<FormRow
|
|
||||||
type="directory"
|
|
||||||
name="download_directory"
|
|
||||||
defaultValue={daemonSettings.download_directory}
|
|
||||||
helper={__("LBRY downloads will be saved here.")}
|
|
||||||
onChange={this.onDownloadDirChange.bind(this)}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
<section className="card">
|
<section className="card">
|
||||||
<div className="card__content">
|
<div className="card__content">
|
||||||
<h3>{__("Bandwidth Limits")}</h3>
|
<h3>{__("Bandwidth Limits")}</h3>
|
||||||
|
@ -252,6 +237,24 @@ class SettingsPage extends React.PureComponent {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
*/
|
||||||
|
return (
|
||||||
|
<main className="main--single-column">
|
||||||
|
<SubHeader />
|
||||||
|
<section className="card">
|
||||||
|
<div className="card__content">
|
||||||
|
<h3>{__("Download Directory")}</h3>
|
||||||
|
</div>
|
||||||
|
<div className="card__content">
|
||||||
|
<FormRow
|
||||||
|
type="directory"
|
||||||
|
name="download_directory"
|
||||||
|
defaultValue={daemonSettings.download_directory}
|
||||||
|
helper={__("LBRY downloads will be saved here.")}
|
||||||
|
onChange={this.onDownloadDirChange.bind(this)}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
<section className="card">
|
<section className="card">
|
||||||
<div className="card__content">
|
<div className="card__content">
|
||||||
<h3>{__("Content")}</h3>
|
<h3>{__("Content")}</h3>
|
||||||
|
|
Loading…
Add table
Reference in a new issue