Hide cursor on next-unread. Fix #431.

This commit is contained in:
Brent Simmons 2018-09-04 21:18:59 -07:00
parent cea52e99c0
commit 4db22b60c7
3 changed files with 4 additions and 0 deletions

View File

@ -202,6 +202,8 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
guard let timelineViewController = timelineViewController, let sidebarViewController = sidebarViewController else { guard let timelineViewController = timelineViewController, let sidebarViewController = sidebarViewController else {
return return
} }
NSCursor.setHiddenUntilMouseMoves(true)
if timelineViewController.canGoToNextUnread() { if timelineViewController.canGoToNextUnread() {
goToNextUnreadInTimeline() goToNextUnreadInTimeline()

View File

@ -192,6 +192,7 @@ import RSCore
return return
} }
NSCursor.setHiddenUntilMouseMoves(true)
outlineView.selectRowIndexes(IndexSet([row]), byExtendingSelection: false) outlineView.selectRowIndexes(IndexSet([row]), byExtendingSelection: false)
} }

View File

@ -280,6 +280,7 @@ class TimelineViewController: NSViewController, UndoableCommandRunner {
guard let ix = indexOfNextUnreadArticle() else { guard let ix = indexOfNextUnreadArticle() else {
return return
} }
NSCursor.setHiddenUntilMouseMoves(true)
tableView.rs_selectRow(ix) tableView.rs_selectRow(ix)
tableView.scrollTo(row: ix) tableView.scrollTo(row: ix)
} }