fix: rare crash when the os was not providing the current space id
This commit is contained in:
1 parent
726acd35a4
commit
cf0504437b
1 file changed
+1
-1
@@ -35,7 +35,7 @@ class Spaces {
|
|||||||
refreshCurrentSpaceId()
|
refreshCurrentSpaceId()
|
||||||
currentSpaceIndex = idsAndIndexes.first { (spaceId: CGSSpaceID, _) -> Bool in
|
currentSpaceIndex = idsAndIndexes.first { (spaceId: CGSSpaceID, _) -> Bool in
|
||||||
spaceId == currentSpaceId
|
spaceId == currentSpaceId
|
||||||
}!.1
|
}?.1 ?? SpaceIndex(1)
|
||||||
debugPrint("Current space", currentSpaceId)
|
debugPrint("Current space", currentSpaceId)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user