@@ -5,24 +5,24 @@ struct MainToolbarModifier: ViewModifier {
55 @Binding var category : XcodeListCategory
66 @Binding var isInstalledOnly : Bool
77 @Binding var isShowingInfoPane : Bool
8-
8+
99 func body( content: Content ) -> some View {
1010 content
1111 . toolbar { toolbar }
1212 }
1313
1414 private var toolbar : some ToolbarContent {
1515 ToolbarItemGroup {
16-
1716 ProgressButton (
18- isInProgress: appState. isUpdating,
17+ isInProgress: appState. isUpdating,
1918 action: appState. update
2019 ) {
2120 Label ( " Refresh " , systemImage: " arrow.clockwise " )
2221 }
2322 . keyboardShortcut ( KeyEquivalent ( " r " ) )
2423 . help ( " RefreshDescription " )
2524 Spacer ( )
25+
2626 Button ( action: {
2727 switch category {
2828 case . all: category = . release
@@ -56,7 +56,7 @@ struct MainToolbarModifier: ViewModifier {
5656 }
5757 }
5858 . help ( " FilterAvailableDescription " )
59-
59+
6060 Button ( action: {
6161 isInstalledOnly. toggle ( )
6262 } ) {
@@ -65,11 +65,9 @@ struct MainToolbarModifier: ViewModifier {
6565 . foregroundColor ( . accentColor)
6666 } else {
6767 Label ( " Filter " , systemImage: " arrow.down.app " )
68-
6968 }
7069 }
7170 . help ( " FilterInstalledDescription " )
72-
7371 }
7472 }
7573}
@@ -80,7 +78,7 @@ extension View {
8078 isInstalledOnly: Binding < Bool > ,
8179 isShowingInfoPane: Binding < Bool >
8280 ) -> some View {
83- self . modifier (
81+ modifier (
8482 MainToolbarModifier (
8583 category: category,
8684 isInstalledOnly: isInstalledOnly,
0 commit comments