Explorar o código

lib/model: Switch the remoteFolderState default value to valid (#8275)

Showing all folders from disconnected or paused remote devices as
unaccepted would be a lot of false positives.  As we cannot know
whether the remote has accepted while it doesn't have an active
connection, let's better report false negatives, as in assuming the
folders are accepted.
André Colomb %!s(int64=3) %!d(string=hai) anos
pai
achega
0537b9546f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      lib/model/folderstate.go

+ 2 - 2
lib/model/folderstate.go

@@ -55,9 +55,9 @@ func (s folderState) String() string {
 type remoteFolderState int
 
 const (
-	remoteNotSharing remoteFolderState = iota
+	remoteValid remoteFolderState = iota
+	remoteNotSharing
 	remotePaused
-	remoteValid
 )
 
 type stateTracker struct {