Fix capitilization of toast view subtitle

This commit is contained in:
Leon Böttger committed 2026-06-03 19:07:01 +02:00
1 parent b5de24d926
commit 9de9ebb4ba
2 files changed
+11 -11

No files matched your search

+7 -7
View File
@@ -254,27 +254,27 @@ public struct TransferMetadata {
let type = UTType(mimeType: mimeType) ?? UTType(filenameExtension: ext) let type = UTType(mimeType: mimeType) ?? UTType(filenameExtension: ext)
if let type, type.conforms(to: .pdf) { if let type, type.conforms(to: .pdf) {
return UTType.pdf.localizedDescription ?? "PDF" return "PDF".localized()
} }
if let type, type.conforms(to: .image) { if let type, type.conforms(to: .image) {
return UTType.image.localizedDescription ?? "Image" return "Image".localized()
} }
if let type, type.conforms(to: .video) || type.conforms(to: .movie) { if let type, type.conforms(to: .video) || type.conforms(to: .movie) {
return UTType.video.localizedDescription ?? "Video" return "Video".localized()
} }
if let type, type.conforms(to: .audio) { if let type, type.conforms(to: .audio) {
return UTType.audio.localizedDescription ?? "Audio" return "Audio".localized()
} }
if let type, type.conforms(to: .text) { if let type, type.conforms(to: .text) {
return UTType.text.localizedDescription ?? "Text" return "Text".localized()
} }
if let type, type.conforms(to: .archive) { if let type, type.conforms(to: .archive) {
return UTType.archive.localizedDescription ?? "Archive" return "Archive".localized()
} }
if let type, let description = type.localizedDescription { if let type, let description = type.localizedDescription {
return description return description
} }
return "File" return "File".localized()
} }
public func getDescription(deviceName: String) -> String { public func getDescription(deviceName: String) -> String {
+4 -4
View File
@@ -1812,8 +1812,8 @@
MTL_FAST_MATH = YES; MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES; ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx; SDKROOT = macosx;
SHARED_BUILD = 149; SHARED_BUILD = 151;
SHARED_VERSION = 4.0; SHARED_VERSION = 4.1;
STRING_CATALOG_GENERATE_SYMBOLS = YES; STRING_CATALOG_GENERATE_SYMBOLS = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_EMIT_LOC_STRINGS = YES;
@@ -1875,8 +1875,8 @@
MTL_ENABLE_DEBUG_INFO = NO; MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES; MTL_FAST_MATH = YES;
SDKROOT = macosx; SDKROOT = macosx;
SHARED_BUILD = 149; SHARED_BUILD = 151;
SHARED_VERSION = 4.0; SHARED_VERSION = 4.1;
STRING_CATALOG_GENERATE_SYMBOLS = YES; STRING_CATALOG_GENERATE_SYMBOLS = YES;
SWIFT_COMPILATION_MODE = wholemodule; SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_EMIT_LOC_STRINGS = YES;