Use curly single quote instead of foot mark in comments.

This commit is contained in:
Brent Simmons committed 2026-09-30 20:34:00 -07:00
1 parent 626f08c3e5
commit 1e47fb8dbe
3 files changed
+128 -60

No files matched your search

@@ -38,7 +38,7 @@ final class MainFeedCollectionViewController: UICollectionViewController, Undoab
private let keyboardManager = KeyboardManager(type: .sidebar)
override var keyCommands: [UIKeyCommand]? {
// If the first responder is the WKWebView (PreloadedWebView) we don't want to supply any keyboard
// If the first responder is the WKWebView (PreloadedWebView) we don’t want to supply any keyboard
// commands that the system is looking for by going up the responder chain. They will interfere with
// the WKWebViews built in hardware keyboard shortcuts, specifically the up and down arrow keys.
guard let current = UIResponder.currentFirstResponder, !(current is PreloadedWebView) else {
@@ -427,7 +427,7 @@ final class MainFeedCollectionViewController: UICollectionViewController, Undoab
completions.append(completion)
}
// A newer full snapshot supersedes a queued one. The superseded update's
// A newer full snapshot supersedes a queued one. The superseded update’s
// completions still run — after a snapshot at least as new as the one they requested.
if update.isFull, let index = queuedSidebarUpdates.firstIndex(where: { $0.update.isFull }) {
completions = queuedSidebarUpdates[index].completions + completions
@@ -517,7 +517,7 @@ final class MainFeedCollectionViewController: UICollectionViewController, Undoab
becomeFirstResponder()
}
// Fires on every tap — even on the already-selected feed, which doesn't get didSelectItemAt.
// Fires on every tap — even on the already-selected feed, which doesn’t get didSelectItemAt.
override func collectionView(_ collectionView: UICollectionView, performPrimaryActionForItemAt indexPath: IndexPath) {
becomeFirstResponder()
coordinator.selectSidebarItem(indexPath: indexPath, animations: [.navigation, .select, .scroll])
@@ -939,7 +939,7 @@ final class MainFeedCollectionViewController: UICollectionViewController, Undoab
@objc func refreshAccounts(_ sender: Any) {
collectionView.refreshControl?.endRefreshing()
// This is a hack to make sure that an error dialog doesn't interfere with dismissing the refreshControl.
// This is a hack to make sure that an error dialog doesn’t interfere with dismissing the refreshControl.
// If the error dialog appears too closely to the call to endRefreshing, then the refreshControl never disappears.
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
appDelegate.manualRefresh(errorHandler: ErrorHandler.present(self))
@@ -1269,7 +1269,7 @@ extension MainFeedCollectionViewController {
let action = UIAlertAction(title: title, style: .default) { [weak self] _ in
MarkAsReadAlertController.confirm(self, coordinator: self?.coordinator, confirmTitle: title, sourceType: contentView, cancelCompletion: cancel) { [weak self] in
self?.coordinator.markAllAsRead(Array(articles))
self?.coordinator.markAllAsRead(Array(articles), in: feed)
completion(true)
}
}
@@ -1354,7 +1354,7 @@ extension MainFeedCollectionViewController {
let action = UIAction(title: title, image: Assets.Images.markAllAsRead) { [weak self] _ in
MarkAsReadAlertController.confirm(self, coordinator: self?.coordinator, confirmTitle: title, sourceType: contentView) { [weak self] in
let articles = sidebarItem.fetchUnreadArticles()
self?.coordinator.markAllAsRead(Array(articles))
self?.coordinator.markAllAsRead(Array(articles), in: sidebarItem)
}
}
@@ -1370,7 +1370,7 @@ extension MainFeedCollectionViewController {
let title = NSString.localizedStringWithFormat(localizedMenuText as NSString, account.nameForDisplay) as String
let action = UIAction(title: title, image: Assets.Images.markAllAsRead) { [weak self] _ in
MarkAsReadAlertController.confirm(self, coordinator: self?.coordinator, confirmTitle: title, sourceType: contentView) { [weak self] in
// If you don't have this delay the screen flashes when it executes this code
// If you don’t have this delay the screen flashes when it executes this code
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
let articles = account.fetchArticles(.unread())
self?.coordinator.markAllAsRead(Array(articles))