diff --git a/ishare/Capture/ImageCapture.swift b/ishare/Capture/ImageCapture.swift index d2eddeb..22e05ce 100644 --- a/ishare/Capture/ImageCapture.swift +++ b/ishare/Capture/ImageCapture.swift @@ -41,7 +41,7 @@ func captureScreen(type: CaptureType, display: Int = 1) async { let suffix = await getCaptureNameSuffix(type: type, display: display) let timestamp = Int(Date().timeIntervalSince1970) - let uniqueFilename = "\(fileName)-\(timestamp)\(suffix).\(fileType)" + let uniqueFilename = "\(fileName)-\(timestamp)\(suffix).\(fileType.rawValue)" var path = "\(capturePath)\(uniqueFilename)" path = NSString(string: path).expandingTildeInPath