fix: rare crash when the os was not providing the current space id

This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-08-18 23:35:13 +09:00
1 parent 726acd35a4
commit cf0504437b
1 file changed
+1 -1
+1 -1
View File
@@ -35,7 +35,7 @@ class Spaces {
refreshCurrentSpaceId()
currentSpaceIndex = idsAndIndexes.first { (spaceId: CGSSpaceID, _) -> Bool in
spaceId == currentSpaceId
}!.1
}?.1 ?? SpaceIndex(1)
debugPrint("Current space", currentSpaceId)
}