Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions WDBFontOverwrite/MainInterface/CustomFontsScene.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,6 @@ struct CustomFontsScene: View {
.navigationTitle("Custom")
}
.navigationViewStyle(.stack)
.sheet(isPresented: $viewModel.importPresented) {
DocumentPicker(
importType: viewModel.selectedCustomFontType,
ttcRepackMode: viewModel.importTTCRepackMode
)
}
.sheet(isPresented: $viewModel.isPresentedFileEditor) {
FileEditorView()
}
.onAppear {
Task(priority: .background) {
do {
Expand Down Expand Up @@ -73,6 +64,12 @@ struct CustomFontsScene: View {
text: "Import custom \(viewModel.selectedCustomFontType.rawValue)"
)
}
.sheet(isPresented: $viewModel.importPresented) {
DocumentPicker(
importType: viewModel.selectedCustomFontType,
ttcRepackMode: viewModel.importTTCRepackMode
)
}
Button {
progressManager.isBusy = true
progressManager.message = "Running"
Expand Down Expand Up @@ -100,6 +97,9 @@ struct CustomFontsScene: View {
text: "Manage imported fonts"
)
}
.sheet(isPresented: $viewModel.isPresentedFileEditor) {
FileEditorView()
}
ActionButtons()
} header: {
Text("Actions")
Expand Down