1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-24 12:30:17 +00:00

Revert change to screenshot destination.

For a sandboxed app, there's a lot more to it than this.
This commit is contained in:
Thomas Harte 2021-03-25 22:44:18 -04:00
parent e8825aeada
commit 53ba0e67d1

View File

@ -606,8 +606,8 @@ class MachineDocument:
let filename = ("Clock Signal Screen Shot " + dateFormatter.string(from: Date()) + ".png").replacingOccurrences(of: "/", with: "-") let filename = ("Clock Signal Screen Shot " + dateFormatter.string(from: Date()) + ".png").replacingOccurrences(of: "/", with: "-")
.replacingOccurrences(of: ":", with: ".") .replacingOccurrences(of: ":", with: ".")
let desktopURL = FileManager.default.urls(for: .desktopDirectory, in: .userDomainMask)[0] let pictursURL = FileManager.default.urls(for: .picturesDirectory, in: .userDomainMask)[0]
let url = desktopURL.appendingPathComponent(filename) let url = pictursURL.appendingPathComponent(filename)
// Obtain the machine's current display. // Obtain the machine's current display.
let imageRepresentation = self.machine.imageRepresentation let imageRepresentation = self.machine.imageRepresentation