Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Commit

Permalink
Make the current editing row always visible
Browse files Browse the repository at this point in the history
  • Loading branch information
uiryuu committed Jan 13, 2018
1 parent 6f37a09 commit 1defd2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions iina-translation-utility/MainWindowController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ extension MainWindowController: NSTableViewDelegate, NSTableViewDataSource {
guard row >= 0 && row < mainTableView.numberOfRows else { return }
editingRow = row
mainTableView.selectRowIndexes(IndexSet(integer: editingRow), byExtendingSelection: false)
mainTableView.scrollRowToVisible(editingRow)
if let rowView = mainTableView.rowView(atRow: editingRow, makeIfNecessary: false) {
let item = displayedItems[row]
popoverBaseTextField.stringValue = item.base ?? ""
Expand Down

0 comments on commit 1defd2e

Please sign in to comment.