Skip to content

Commit

Permalink
Cleanup screenshot image after recognition
Browse files Browse the repository at this point in the history
  • Loading branch information
melonamin committed May 8, 2021
1 parent 135e67b commit e18edb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions TRex/App/TRex.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class TRex: NSObject {
.replacingOccurrences(of: "{text}", with: text.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) ?? "")) {
NSWorkspace.shared.open(url)
}
try? FileManager.default.removeItem(atPath: screenShotFilePath)
}

private func detectAndOpenURL(text: String) {
Expand Down

0 comments on commit e18edb8

Please sign in to comment.