add option to change download location

This commit is contained in:
Zlatin Balevsky
2019-06-25 07:59:30 +01:00
parent 26207ffd1b
commit 4fd9fc1991
3 changed files with 21 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ class OptionsModel {
@Observable String updateCheckInterval
@Observable boolean onlyTrusted
@Observable boolean shareDownloadedFiles
@Observable String downloadLocation
// i2p options
@Observable String inboundLength
@@ -35,6 +36,7 @@ class OptionsModel {
updateCheckInterval = settings.updateCheckInterval
onlyTrusted = !settings.allowUntrusted()
shareDownloadedFiles = settings.shareDownloadedFiles
downloadLocation = settings.downloadLocation.getAbsolutePath()
Core core = application.context.get("core")
inboundLength = core.i2pOptions["inbound.length"]