mirror of https://github.com/zlatinb/muwire
The option to send path information is not tied to the option to allow browsing anymore. GitHub issue #78
parent
a0b9aa3383
commit
fdd34cb606
|
@ -27,7 +27,6 @@ class OptionsModel {
|
|||
@Observable boolean searchPaths
|
||||
@Observable boolean browseFiles
|
||||
@Observable boolean showPaths
|
||||
@Observable boolean showPathsCheckboxEnabled
|
||||
@Observable boolean allowTracking
|
||||
@Observable int speedSmoothSeconds
|
||||
@Observable int totalUploadSlots
|
||||
|
@ -116,7 +115,6 @@ class OptionsModel {
|
|||
searchPaths = settings.searchPaths
|
||||
browseFiles = settings.browseFiles
|
||||
showPaths = settings.showPaths
|
||||
setShowPathsCheckboxEnabled(browseFiles)
|
||||
allowTracking = settings.allowTracking
|
||||
speedSmoothSeconds = settings.speedSmoothSeconds
|
||||
totalUploadSlots = settings.totalUploadSlots
|
||||
|
|
|
@ -138,9 +138,9 @@ class OptionsView {
|
|||
fill : GridBagConstraints.HORIZONTAL, weightx: 100))
|
||||
browseFilesCheckbox = checkBox(selected : bind {model.browseFiles}, constraints : gbc(gridx : 1, gridy : 3,
|
||||
anchor : GridBagConstraints.LINE_END, fill : GridBagConstraints.HORIZONTAL, weightx: 0))
|
||||
label(text : trans("OPTIONS_SHOW_PATHS"), enabled: bind{model.showPathsCheckboxEnabled}, constraints: gbc(gridx:0, gridy:4, anchor: GridBagConstraints.LINE_START,
|
||||
label(text : trans("OPTIONS_SHOW_PATHS"), constraints: gbc(gridx:0, gridy:4, anchor: GridBagConstraints.LINE_START,
|
||||
fill : GridBagConstraints.HORIZONTAL, weightx: 100))
|
||||
showPathsCheckbox = checkBox(selected : bind {model.showPaths}, enabled : bind{model.showPathsCheckboxEnabled}, constraints : gbc(gridx: 1, gridy : 4,
|
||||
showPathsCheckbox = checkBox(selected : bind {model.showPaths}, constraints : gbc(gridx: 1, gridy : 4,
|
||||
anchor : GridBagConstraints.LINE_END, fill : GridBagConstraints.HORIZONTAL, weightx : 0))
|
||||
label(text : trans("OPTIONS_ALLOW_TRACKING"), constraints : gbc(gridx: 0, gridy: 5, anchor: GridBagConstraints.LINE_START,
|
||||
fill : GridBagConstraints.HORIZONTAL, weightx: 100))
|
||||
|
@ -454,10 +454,6 @@ class OptionsView {
|
|||
allowUntrustedCheckbox.addActionListener {
|
||||
model.searchExtraHopCheckboxEnabled = allowUntrustedCheckbox.model.isSelected()
|
||||
}
|
||||
|
||||
browseFilesCheckbox.addActionListener {
|
||||
model.showPathsCheckboxEnabled = browseFilesCheckbox.model.isSelected()
|
||||
}
|
||||
}
|
||||
|
||||
boolean isAqua() {
|
||||
|
|
Loading…
Reference in New Issue