Better preserve the UI state after an undo
This commit is contained in:
6 files changed
+26
-8
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user