KeyHandler // Fix the path for dumpDOT.

This commit is contained in:
ShikiSuen 2022-09-05 23:57:05 +08:00
parent 34f3e48d70
commit 510fba5945
1 changed files with 1 additions and 1 deletions

View File

@ -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 {