update the advanced sharing pane

pull/53/head
Zlatin Balevsky 2020-03-26 17:32:42 +00:00
parent 1c5fec7e9a
commit 435170cb1b
2 changed files with 4 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class AdvancedSharingModel {
Core core Core core
void mvcGroupInit(Map<String,String> args) { void mvcGroupInit(Map<String,String> args) {
watchedDirectories.addAll(core.muOptions.watchedDirectories) watchedDirectories.addAll(core.watchedDirectoryManager.watchedDirs.values())
treeRoot = new DefaultMutableTreeNode() treeRoot = new DefaultMutableTreeNode()
negativeTree = new DefaultTreeModel(treeRoot) negativeTree = new DefaultTreeModel(treeRoot)

View File

@ -43,7 +43,9 @@ class AdvancedSharingView {
scrollPane( constraints : BorderLayout.CENTER ) { scrollPane( constraints : BorderLayout.CENTER ) {
watchedDirsTable = table(autoCreateRowSorter : true, rowHeight : rowHeight) { watchedDirsTable = table(autoCreateRowSorter : true, rowHeight : rowHeight) {
tableModel(list : model.watchedDirectories) { 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})
} }
} }
} }