Full page content, fixes, cleaner settings
This commit is contained in:
31
CHDataManagement/Model/Settings/PathSettings.swift
Normal file
31
CHDataManagement/Model/Settings/PathSettings.swift
Normal file
@ -0,0 +1,31 @@
|
||||
import Foundation
|
||||
|
||||
final class PathSettings: ObservableObject {
|
||||
|
||||
@Published
|
||||
var outputDirectoryPath: String
|
||||
|
||||
@Published
|
||||
var pagesOutputFolderPath: String
|
||||
|
||||
@Published
|
||||
var imagesOutputFolderPath: String
|
||||
|
||||
@Published
|
||||
var filesOutputFolderPath: String
|
||||
|
||||
@Published
|
||||
var videosOutputFolderPath: String
|
||||
|
||||
@Published
|
||||
var tagsOutputFolderPath: String
|
||||
|
||||
init(file: PathSettingsFile) {
|
||||
self.outputDirectoryPath = file.outputDirectoryPath
|
||||
self.pagesOutputFolderPath = file.pagesOutputFolderPath
|
||||
self.imagesOutputFolderPath = file.imagesOutputFolderPath
|
||||
self.filesOutputFolderPath = file.filesOutputFolderPath
|
||||
self.videosOutputFolderPath = file.videosOutputFolderPath
|
||||
self.tagsOutputFolderPath = file.tagsOutputFolderPath
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user