Force using TextEdit.app to open user phrases, etc.

This commit is contained in:
ShikiSuen 2022-01-24 17:12:07 +08:00
parent d1dddc2e8f
commit 77cf2b3afc
1 changed files with 1 additions and 2 deletions

View File

@ -1570,8 +1570,7 @@ NS_INLINE size_t max(size_t a, size_t b) { return a > b ? a : b; }
if (![self _checkUserFiles]) {
return;
}
NSURL *url = [NSURL fileURLWithPath:path];
[[NSWorkspace sharedWorkspace] openURL:url];
[[NSWorkspace sharedWorkspace] openFile:path withApplication:@"TextEdit"];
}
- (void)openUserPhrases:(id)sender