Keep doing rework for using PDFReportInfo obj

Still need to think about how this all works...could probably simplify more...
This commit is contained in:
2026-03-30 21:00:19 +09:00
parent 534af58f44
commit 22d896543c
5 changed files with 89 additions and 17 deletions
+10 -1
View File
@@ -12,7 +12,7 @@ namespace MayShow.Models;
class PDFReportInfo : ChangeNotifier
{
private string? _baseFolder; // might be null
private string? _baseFolder; // might be null; if set, use this to know where (initial) working dir is
private string _uuid;
private string _title;
private DateTime? _lastSaved;
@@ -53,6 +53,15 @@ class PDFReportInfo : ChangeNotifier
{
UUID = Guid.NewGuid().ToString();
}
public string GetWorkingPath()
{
if (string.IsNullOrWhiteSpace(BaseFolder))
{
return Path.Combine(Utilities.GetInternalDataPath(), UUID);
}
return BaseFolder;
}
public void DeleteInternalFolderFromDisk()
{