|
@@ -2385,7 +2385,7 @@ extension KMMainViewController {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
let tabController = sender.object as? CTTabController
|
|
let tabController = sender.object as? CTTabController
|
|
- if tabController?.title == self.document?.documentURL.lastPathComponent {
|
|
|
|
|
|
+ if tabController?.title == self.document?.documentURL.deletingPathExtension().lastPathComponent {
|
|
if let doc = self.myDocument, doc.isDocumentEdited {
|
|
if let doc = self.myDocument, doc.isDocumentEdited {
|
|
Task {
|
|
Task {
|
|
let resp = await KMAlertTool.runModel(message: NSLocalizedString("File Updated", comment: ""), buttons: [NSLocalizedString("Save", comment: ""), NSLocalizedString("Cancel", comment: "")])
|
|
let resp = await KMAlertTool.runModel(message: NSLocalizedString("File Updated", comment: ""), buttons: [NSLocalizedString("Save", comment: ""), NSLocalizedString("Cancel", comment: "")])
|
|
@@ -2478,7 +2478,7 @@ extension KMMainViewController {
|
|
func showInFinder(_ sender: Any) -> Void {
|
|
func showInFinder(_ sender: Any) -> Void {
|
|
if sender is NSNotification {
|
|
if sender is NSNotification {
|
|
let tabController = (sender as! NSNotification).object as? CTTabController
|
|
let tabController = (sender as! NSNotification).object as? CTTabController
|
|
- if tabController?.title == self.document?.documentURL.lastPathComponent {
|
|
|
|
|
|
+ if tabController?.title == self.document?.documentURL.deletingPathExtension().lastPathComponent {
|
|
if let file = self.myDocument?.fileURL {
|
|
if let file = self.myDocument?.fileURL {
|
|
if FileManager.default.fileExists(atPath: file.path) {
|
|
if FileManager.default.fileExists(atPath: file.path) {
|
|
NSWorkspace.shared.activateFileViewerSelecting([file])
|
|
NSWorkspace.shared.activateFileViewerSelecting([file])
|