Rework storage structs, link preview
This commit is contained in:
@ -73,12 +73,12 @@ struct FileDetailView: View {
|
||||
|
||||
switch language {
|
||||
case .english:
|
||||
StringPropertyView(
|
||||
OptionalStringPropertyView(
|
||||
title: "Description",
|
||||
text: $file.english,
|
||||
footer: "The description for the file. Descriptions are used for images and to explain the content of a file.")
|
||||
case .german:
|
||||
StringPropertyView(
|
||||
OptionalStringPropertyView(
|
||||
title: "Description",
|
||||
text: $file.german,
|
||||
footer: "The description for the file. Descriptions are used for images and to explain the content of a file.")
|
||||
@ -151,8 +151,7 @@ struct FileDetailView: View {
|
||||
file.determineFileSize()
|
||||
// Force regeneration of images and/or file copying
|
||||
file.removeFileFromOutputFolder()
|
||||
// Trigger content view update to reload image
|
||||
file.didChange()
|
||||
file.modifiedDate = .now
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user