fix: rare crash when user cycles while all windows get closed
This commit is contained in:
1 parent
12c27f137f
commit
e901ca3c7d
1 file changed
+1
@@ -24,6 +24,7 @@ class Windows {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static func windowIndexAfterCycling(_ step: Int) -> Int {
|
static func windowIndexAfterCycling(_ step: Int) -> Int {
|
||||||
|
if list.count == 0 { return 0 }
|
||||||
var iterations = 0
|
var iterations = 0
|
||||||
var targetIndex = focusedWindowIndex
|
var targetIndex = focusedWindowIndex
|
||||||
repeat {
|
repeat {
|
||||||
|
|||||||
Reference in new issue
Block a user