mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 17:29:23 +00:00
Enable refresh button on macOS
This commit is contained in:
1 parent
e34dbd48ee
commit
69fa598d99
1 file changed
+7
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import Account
|
||||
|
||||
struct SceneNavigationView: View {
|
||||
|
||||
@@ -92,6 +93,7 @@ struct SceneNavigationView: View {
|
||||
}
|
||||
ToolbarItem {
|
||||
Button {
|
||||
AccountManager.shared.refreshAll(errorHandler: handleRefreshError)
|
||||
} label: {
|
||||
AppAssets.refreshImage
|
||||
}
|
||||
@@ -180,6 +182,11 @@ struct SceneNavigationView: View {
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
func handleRefreshError(_ error: Error) {
|
||||
sceneModel.accountErrorMessage = error.localizedDescription
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
struct NavigationView_Previews: PreviewProvider {
|
||||
|
||||
Reference in new issue
Block a user