all: Fix FS watcher restarting and web UI indication (fixes #4923) (#4962)

This commit is contained in:
Simon Frei
2018-06-11 15:47:54 +02:00
committed by Jakob Borg
parent 1e2732aa21
commit 9e0e04f4de
6 changed files with 87 additions and 15 deletions

View File

@@ -44,6 +44,7 @@ const (
FolderScanProgress
FolderPaused
FolderResumed
FolderWatchStateChanged
ListenAddressesChanged
LoginAttempt
@@ -110,6 +111,8 @@ func (t EventType) String() string {
return "ListenAddressesChanged"
case LoginAttempt:
return "LoginAttempt"
case FolderWatchStateChanged:
return "FolderWatchStateChanged"
default:
return "Unknown"
}
@@ -187,6 +190,8 @@ func UnmarshalEventType(s string) EventType {
return ListenAddressesChanged
case "LoginAttempt":
return LoginAttempt
case "FolderWatchStateChanged":
return FolderWatchStateChanged
default:
return 0
}