KeyHandler // Fix the path for dumpDOT.
This commit is contained in:
parent
34f3e48d70
commit
510fba5945
|
@ -121,7 +121,7 @@ public class KeyHandler {
|
||||||
if mgrPrefs.isDebugModeEnabled {
|
if mgrPrefs.isDebugModeEnabled {
|
||||||
let result = compositor.dumpDOT
|
let result = compositor.dumpDOT
|
||||||
let appSupportPath = FileManager.default.urls(for: .cachesDirectory, in: .userDomainMask)[0].path.appending(
|
let appSupportPath = FileManager.default.urls(for: .cachesDirectory, in: .userDomainMask)[0].path.appending(
|
||||||
"vChewing-visualization.dot")
|
"/vChewing-visualization.dot")
|
||||||
do {
|
do {
|
||||||
try result.write(toFile: appSupportPath, atomically: true, encoding: .utf8)
|
try result.write(toFile: appSupportPath, atomically: true, encoding: .utf8)
|
||||||
} catch {
|
} catch {
|
||||||
|
|
Loading…
Reference in New Issue