mirror of https://github.com/zlatinb/muwire
gui option to disable tracking
parent
9f7aaec991
commit
7864eebb24
|
@ -104,6 +104,10 @@ class OptionsController {
|
||||||
model.browseFiles = browseFiles
|
model.browseFiles = browseFiles
|
||||||
settings.browseFiles = browseFiles
|
settings.browseFiles = browseFiles
|
||||||
|
|
||||||
|
boolean allowTracking = view.allowTrackingCheckbox.model.isSelected()
|
||||||
|
model.allowTracking = allowTracking
|
||||||
|
settings.allowTracking = allowTracking
|
||||||
|
|
||||||
text = view.speedSmoothSecondsField.text
|
text = view.speedSmoothSecondsField.text
|
||||||
model.speedSmoothSeconds = Integer.valueOf(text)
|
model.speedSmoothSeconds = Integer.valueOf(text)
|
||||||
settings.speedSmoothSeconds = Integer.valueOf(text)
|
settings.speedSmoothSeconds = Integer.valueOf(text)
|
||||||
|
|
|
@ -18,6 +18,7 @@ class OptionsModel {
|
||||||
@Observable String incompleteLocation
|
@Observable String incompleteLocation
|
||||||
@Observable boolean searchComments
|
@Observable boolean searchComments
|
||||||
@Observable boolean browseFiles
|
@Observable boolean browseFiles
|
||||||
|
@Observable boolean allowTracking
|
||||||
@Observable int speedSmoothSeconds
|
@Observable int speedSmoothSeconds
|
||||||
@Observable int totalUploadSlots
|
@Observable int totalUploadSlots
|
||||||
@Observable int uploadSlotsPerUser
|
@Observable int uploadSlotsPerUser
|
||||||
|
@ -83,6 +84,7 @@ class OptionsModel {
|
||||||
incompleteLocation = settings.incompleteLocation.getAbsolutePath()
|
incompleteLocation = settings.incompleteLocation.getAbsolutePath()
|
||||||
searchComments = settings.searchComments
|
searchComments = settings.searchComments
|
||||||
browseFiles = settings.browseFiles
|
browseFiles = settings.browseFiles
|
||||||
|
allowTracking = settings.allowTracking
|
||||||
speedSmoothSeconds = settings.speedSmoothSeconds
|
speedSmoothSeconds = settings.speedSmoothSeconds
|
||||||
totalUploadSlots = settings.totalUploadSlots
|
totalUploadSlots = settings.totalUploadSlots
|
||||||
uploadSlotsPerUser = settings.uploadSlotsPerUser
|
uploadSlotsPerUser = settings.uploadSlotsPerUser
|
||||||
|
|
|
@ -43,6 +43,7 @@ class OptionsView {
|
||||||
def shareHiddenCheckbox
|
def shareHiddenCheckbox
|
||||||
def searchCommentsCheckbox
|
def searchCommentsCheckbox
|
||||||
def browseFilesCheckbox
|
def browseFilesCheckbox
|
||||||
|
def allowTrackingCheckbox
|
||||||
def speedSmoothSecondsField
|
def speedSmoothSecondsField
|
||||||
def totalUploadSlotsField
|
def totalUploadSlotsField
|
||||||
def uploadSlotsPerUserField
|
def uploadSlotsPerUserField
|
||||||
|
@ -107,6 +108,10 @@ class OptionsView {
|
||||||
fill : GridBagConstraints.HORIZONTAL, weightx: 100))
|
fill : GridBagConstraints.HORIZONTAL, weightx: 100))
|
||||||
browseFilesCheckbox = checkBox(selected : bind {model.browseFiles}, constraints : gbc(gridx : 1, gridy : 1,
|
browseFilesCheckbox = checkBox(selected : bind {model.browseFiles}, constraints : gbc(gridx : 1, gridy : 1,
|
||||||
anchor : GridBagConstraints.LINE_END, fill : GridBagConstraints.HORIZONTAL, weightx: 0))
|
anchor : GridBagConstraints.LINE_END, fill : GridBagConstraints.HORIZONTAL, weightx: 0))
|
||||||
|
label(text : "Allow tracking", constraints : gbc(gridx: 0, gridy: 2, anchor: GridBagConstraints.LINE_START,
|
||||||
|
fill : GridBagConstraints.HORIZONTAL, weightx: 100))
|
||||||
|
allowTrackingCheckbox = checkBox(selected : bind {model.allowTracking}, constraints : gbc(gridx: 1, gridy : 2,
|
||||||
|
anchor : GridBagConstraints.LINE_END, fill : GridBagConstraints.HORIZONTAL, weightx : 0))
|
||||||
}
|
}
|
||||||
|
|
||||||
panel (border : titledBorder(title : "Download Settings", border : etchedBorder(), titlePosition : TitledBorder.TOP,
|
panel (border : titledBorder(title : "Download Settings", border : etchedBorder(), titlePosition : TitledBorder.TOP,
|
||||||
|
|
Loading…
Reference in New Issue