Hide cursor on next-unread. Fix #431.
This commit is contained in:
parent
cea52e99c0
commit
4db22b60c7
|
@ -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()
|
||||||
|
|
|
@ -192,6 +192,7 @@ import RSCore
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NSCursor.setHiddenUntilMouseMoves(true)
|
||||||
outlineView.selectRowIndexes(IndexSet([row]), byExtendingSelection: false)
|
outlineView.selectRowIndexes(IndexSet([row]), byExtendingSelection: false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue