Skip to content

Commit 049cec3

Browse files
committed
🐞 Preserve cycle order when exporting keybinds (#1050)
1 parent d9aff26 commit 049cec3

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

Loop/Migration/Migrator.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,6 @@ private extension Migrator {
219219

220220
// Handle nested cycle actions if present
221221
if var cycle = actions[i]["cycle"] as? [[String: Any]] {
222-
// Sort the cycle actions by direction
223-
cycle.sort { first, second -> Bool in
224-
let firstDir = first["direction"] as? String ?? ""
225-
let secondDir = second["direction"] as? String ?? ""
226-
return firstDir < secondDir
227-
}
228-
229222
// For each action in the cycle
230223
for j in 0 ..< cycle.count {
231224
// Sort the keybind array in each cycle action

0 commit comments

Comments
 (0)