File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ struct AppListView: View {
7070 }
7171 }
7272 }
73+ . navigationViewStyle ( StackNavigationViewStyle ( ) )
7374 . animation ( . easeOut, value: appList. activeScopeApps. keys)
7475 . sheet ( item: $selectorOpenedURL) { urlWrapper in
7576 AppListView ( )
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import SwiftUI
1010
1111final class EjectListModel : ObservableObject {
1212 let app : App
13- private var _injectedPlugIns : [ InjectedPlugIn ] = [ ]
13+ private( set ) var injectedPlugIns : [ InjectedPlugIn ] = [ ]
1414
1515 @Published var filter = FilterOptions ( )
1616 @Published var filteredPlugIns : [ InjectedPlugIn ] = [ ]
@@ -30,13 +30,13 @@ final class EjectListModel: ObservableObject {
3030 }
3131
3232 func reload( ) {
33- self . _injectedPlugIns = InjectorV3 . main. injectedAssetURLsInBundle ( app. url)
33+ self . injectedPlugIns = InjectorV3 . main. injectedAssetURLsInBundle ( app. url)
3434 . map { InjectedPlugIn ( url: $0) }
3535 performFilter ( )
3636 }
3737
3838 func performFilter( ) {
39- var filteredPlugIns = _injectedPlugIns
39+ var filteredPlugIns = injectedPlugIns
4040
4141 if !filter. searchKeyword. isEmpty {
4242 filteredPlugIns = filteredPlugIns. filter {
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ struct EjectListView: View {
4949 . transition ( . opacity)
5050 }
5151 }
52+ . disabled ( ejectList. injectedPlugIns. isEmpty)
5253 }
5354 }
5455 . animation ( . easeOut, value: isExportingAll)
@@ -324,7 +325,7 @@ struct EjectListView: View {
324325 let fileMgr = FileManager . default
325326 try fileMgr. createDirectory ( at: exportURL, withIntermediateDirectories: true )
326327
327- for plugin in ejectList. filteredPlugIns {
328+ for plugin in ejectList. injectedPlugIns {
328329 let exportURL = exportURL. appendingPathComponent ( plugin. url. lastPathComponent)
329330 try fileMgr. copyItem ( at: plugin. url, to: exportURL)
330331 }
You can’t perform that action at this time.
0 commit comments