Show how many times we've been browsed and increment hit counter
This commit is contained in:
@@ -36,8 +36,8 @@ class MuWireStatusController {
|
||||
|
||||
|
||||
model.sharedFiles = core.fileManager.fileToSharedFile.size()
|
||||
|
||||
model.downloads = core.downloadManager.downloaders.size()
|
||||
model.browsed = core.connectionAcceptor.browsed
|
||||
}
|
||||
|
||||
@ControllerAction
|
||||
|
@@ -20,6 +20,7 @@ class MuWireStatusModel {
|
||||
@Observable int hopelessHosts
|
||||
@Observable int sharedFiles
|
||||
@Observable int downloads
|
||||
@Observable int browsed
|
||||
|
||||
void mvcGroupInit(Map<String,String> args) {
|
||||
controller.refresh()
|
||||
|
@@ -62,6 +62,8 @@ class MuWireStatusView {
|
||||
label(text : bind {model.sharedFiles}, constraints : gbc(gridx:1, gridy:0, anchor : GridBagConstraints.LINE_END))
|
||||
label(text : "Downloading", constraints : gbc(gridx:0, gridy:1, anchor : GridBagConstraints.LINE_START, weightx : 100))
|
||||
label(text : bind {model.downloads}, constraints : gbc(gridx:1, gridy:1, anchor : GridBagConstraints.LINE_END))
|
||||
label(text : "Times Browsed", constraints : gbc(gridx:0, gridy:2, anchor: GridBagConstraints.LINE_START, weightx: 100))
|
||||
label(text : bind {model.browsed}, constraints : gbc(gridx: 1, gridy: 2, anchor : GridBagConstraints.LINE_END))
|
||||
}
|
||||
}
|
||||
buttonsPanel = builder.panel {
|
||||
|
Reference in New Issue
Block a user