mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-25 03:32:01 +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:
parent
e8825aeada
commit
53ba0e67d1
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user