diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index 04e2d2816..3ac19dd73 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -691,13 +691,7 @@ func syncthingMain(runtimeOptions RuntimeOptions) { } m.Index(device, folderCfg.ID, nil, 0, nil) } - // Routine to pull blocks from other devices to synchronize the local - // folder. Does not run when we are in read only (publish only) mode. - if folderCfg.ReadOnly { - m.StartFolderRO(folderCfg.ID) - } else { - m.StartFolderRW(folderCfg.ID) - } + m.StartFolder(folderCfg.ID) } mainService.Add(m) @@ -994,7 +988,7 @@ func defaultConfig(myName string) config.Configuration { if !noDefaultFolder { l.Infoln("Default folder created and/or linked to new config") - defaultFolder = config.NewFolderConfiguration("default", locations[locDefFolder]) + defaultFolder = config.NewFolderConfiguration("default", locations[locDefFolder], config.FolderTypeReadWrite) defaultFolder.RescanIntervalS = 60 defaultFolder.MinDiskFreePct = 1 defaultFolder.Devices = []config.FolderDeviceConfiguration{{DeviceID: myID}} diff --git a/cmd/syncthing/usage_report.go b/cmd/syncthing/usage_report.go index 434f4f654..bb20c9d2b 100644 --- a/cmd/syncthing/usage_report.go +++ b/cmd/syncthing/usage_report.go @@ -133,7 +133,7 @@ func reportData(cfg configIntf, m modelIntf) map[string]interface{} { for _, cfg := range cfg.Folders() { rescanIntvs = append(rescanIntvs, cfg.RescanIntervalS) - if cfg.ReadOnly { + if cfg.Type == config.FolderTypeReadOnly { folderUses["readonly"]++ } if cfg.IgnorePerms { diff --git a/gui/default/index.html b/gui/default/index.html index 0f2a65f67..33b7682c0 100755 --- a/gui/default/index.html +++ b/gui/default/index.html @@ -231,7 +231,7 @@

- + {{folder.id}} {{folder.label}} @@ -294,7 +294,7 @@ ~ {{scanRemaining(folder.id)}} - +  Failed Items @@ -305,10 +305,11 @@ - -  Folder Master + +  Folder Type - Yes + Master + {{ folder.type.charAt(0).toUpperCase() + folder.type.slice(1) }} @@ -351,7 +352,7 @@  Shared With {{sharesFolder(folder)}} - +  Last File Received @@ -365,7 +366,7 @@