From 1131d70b3a365f8f87a25c712535183a8fbf284c Mon Sep 17 00:00:00 2001 From: freefire <97975089@qq.com> Date: Wed, 19 Jun 2024 20:25:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E9=A2=98=E6=98=BE=E7=A4=BA=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E7=BC=96=E8=BE=91=E7=9A=84=E6=96=87=E4=BB=B6=E5=AE=8C?= =?UTF-8?q?=E6=95=B4=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/teUtils.aardio | 1 + main.aardio | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/teUtils.aardio b/lib/teUtils.aardio index 6084dfc..0afc93f 100644 --- a/lib/teUtils.aardio +++ b/lib/teUtils.aardio @@ -141,6 +141,7 @@ getTxtTableData = function(reference_row = 2){ var writeTxtFile = function(file_path, vlist_data){ var file = ..io.open(file_path,"w"); + setCurFilePath(file_path); for(i=1;#vlist_data;1){ var arrLine = {}; for(j=1;#vlist_data.fields;1){ diff --git a/main.aardio b/main.aardio index 30c0b2b..c91bb6d 100644 --- a/main.aardio +++ b/main.aardio @@ -80,6 +80,7 @@ g_teMenus.openFile = function(ctrl){ return function(){ var t = teUtils.getTxtTableData(); if(t){ + mainForm.text += "[ " + teUtils.getCurFilePath() + " ]"; g_teMenus.newFile(); mainForm.g_flexcell.AutoRedraw = false; mainForm.g_flexcell.setTable(t,,t.fields); @@ -107,6 +108,7 @@ g_teMenus.saveFile = function(ctrl){ g_teMenus.saveAsFile = function(ctrl){ return function(){ teUtils.saveAsTxtTableData(mainForm.g_flexcell.getVlistData()); + mainForm.text += "[ " + teUtils.getCurFilePath() + " ]"; showUnmodifyStyle(); } }