Better preserve the UI state after an undo

This commit is contained in:
Damiano Galassi committed 2026-10-03 17:20:42 +02:00
1 parent 530ea2ed20
commit dfdffb9332
6 files changed
+26 -8

No files matched your search

+3 -1
View File
@@ -455,7 +455,9 @@ final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDel
}
table.removeRows(at: indexes, withAnimation: .slideUp)
table.selectRowIndexes(IndexSet(integer: indexes.first!), byExtendingSelection: false)
if let index = indexes.first, index < queue.count {
table.selectRowIndexes(IndexSet(integer: index), byExtendingSelection: false)
}
table.endUpdates()
updateState()