File tree 3 files changed +6
-4
lines changed 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ struct AppListView: View {
70
70
}
71
71
}
72
72
}
73
+ . navigationViewStyle ( StackNavigationViewStyle ( ) )
73
74
. animation ( . easeOut, value: appList. activeScopeApps. keys)
74
75
. sheet ( item: $selectorOpenedURL) { urlWrapper in
75
76
AppListView ( )
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import SwiftUI
10
10
11
11
final class EjectListModel : ObservableObject {
12
12
let app : App
13
- private var _injectedPlugIns : [ InjectedPlugIn ] = [ ]
13
+ private( set ) var injectedPlugIns : [ InjectedPlugIn ] = [ ]
14
14
15
15
@Published var filter = FilterOptions ( )
16
16
@Published var filteredPlugIns : [ InjectedPlugIn ] = [ ]
@@ -30,13 +30,13 @@ final class EjectListModel: ObservableObject {
30
30
}
31
31
32
32
func reload( ) {
33
- self . _injectedPlugIns = InjectorV3 . main. injectedAssetURLsInBundle ( app. url)
33
+ self . injectedPlugIns = InjectorV3 . main. injectedAssetURLsInBundle ( app. url)
34
34
. map { InjectedPlugIn ( url: $0) }
35
35
performFilter ( )
36
36
}
37
37
38
38
func performFilter( ) {
39
- var filteredPlugIns = _injectedPlugIns
39
+ var filteredPlugIns = injectedPlugIns
40
40
41
41
if !filter. searchKeyword. isEmpty {
42
42
filteredPlugIns = filteredPlugIns. filter {
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ struct EjectListView: View {
49
49
. transition ( . opacity)
50
50
}
51
51
}
52
+ . disabled ( ejectList. injectedPlugIns. isEmpty)
52
53
}
53
54
}
54
55
. animation ( . easeOut, value: isExportingAll)
@@ -324,7 +325,7 @@ struct EjectListView: View {
324
325
let fileMgr = FileManager . default
325
326
try fileMgr. createDirectory ( at: exportURL, withIntermediateDirectories: true )
326
327
327
- for plugin in ejectList. filteredPlugIns {
328
+ for plugin in ejectList. injectedPlugIns {
328
329
let exportURL = exportURL. appendingPathComponent ( plugin. url. lastPathComponent)
329
330
try fileMgr. copyItem ( at: plugin. url, to: exportURL)
330
331
}
You can’t perform that action at this time.
0 commit comments