mirror of https://github.com/zlatinb/muwire
update the advanced sharing pane
parent
1c5fec7e9a
commit
435170cb1b
|
@ -20,7 +20,7 @@ class AdvancedSharingModel {
|
|||
Core core
|
||||
|
||||
void mvcGroupInit(Map<String,String> args) {
|
||||
watchedDirectories.addAll(core.muOptions.watchedDirectories)
|
||||
watchedDirectories.addAll(core.watchedDirectoryManager.watchedDirs.values())
|
||||
|
||||
treeRoot = new DefaultMutableTreeNode()
|
||||
negativeTree = new DefaultTreeModel(treeRoot)
|
||||
|
|
|
@ -43,7 +43,9 @@ class AdvancedSharingView {
|
|||
scrollPane( constraints : BorderLayout.CENTER ) {
|
||||
watchedDirsTable = table(autoCreateRowSorter : true, rowHeight : rowHeight) {
|
||||
tableModel(list : model.watchedDirectories) {
|
||||
closureColumn(header : "Directory", type : String, read : {it})
|
||||
closureColumn(header : "Directory", type : String, read : {it.directory.toString()})
|
||||
closureColumn(header : "Automatic", type : Boolean, read : {it.autoWatch})
|
||||
closureColumn(header : "Sync Interval", type : Integer, read : {it.syncInterval})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue