From 0918afc48320d33a4cbbaabd4b2bbab922d0aa34 Mon Sep 17 00:00:00 2001 From: "Luke I. Wilson" Date: Mon, 5 Apr 2021 10:30:51 -0500 Subject: [PATCH] Fixed not setting TextEdit's FilePath field in Save As function --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 1bf5e78..3ac136c 100644 --- a/main.go +++ b/main.go @@ -85,9 +85,11 @@ func saveAs() { } te.Dirty = false + te.FilePath = filePaths[0] + tab.Name = filePaths[0] + dialog = nil // Hide the file selector changeFocus(tabContainer) - tab.Name = filePaths[0] } dialog = ui.NewFileSelectorDialog(