Rework path storage, add start screen
This commit is contained in:
@ -81,7 +81,7 @@ struct AddPageView: View {
|
||||
urlString: "page",
|
||||
title: "A Title"),
|
||||
tags: [])
|
||||
content.pages.insert(page, at: 0)
|
||||
content.add(page)
|
||||
selectedPage = page
|
||||
dismissSheet()
|
||||
}
|
||||
|
@ -82,11 +82,10 @@ struct PageDetailView: View {
|
||||
}
|
||||
|
||||
private func generate() {
|
||||
guard content.settings.paths.outputDirectoryPath != "" else {
|
||||
guard let url = content.storage.outputPath else {
|
||||
print("Invalid output path")
|
||||
return
|
||||
}
|
||||
let url = content.settings.outputDirectory
|
||||
|
||||
guard FileManager.default.fileExists(atPath: url.path) else {
|
||||
print("Missing output folder")
|
||||
|
Reference in New Issue
Block a user