Skip to content

Commit

Permalink
Fixed crash when loading cursor position
Browse files Browse the repository at this point in the history
  • Loading branch information
charliescheer committed Apr 12, 2024
1 parent 3ff8b74 commit f87f00f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Simplenote/NoteWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ class NoteWindow: NSWindow {

private func setupWindow() {
contentViewController = editor

let documentsDirectory = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first!
let fileURL = URL(fileURLWithPath: documentsDirectory, isDirectory: true).appendingPathComponent(".editor-metadata-cache")
let editorCache = NoteEditorMetadataCache(storage: FileStorage(fileURL: fileURL))
editor.metadataCache = editorCache
editor.metadataCache = SimplenoteAppDelegate.shared().noteEditorMetadataCache
}

// MARK: Show Note
Expand Down

0 comments on commit f87f00f

Please sign in to comment.