From d44d0969725812ce86b7b8aa187d2a3fec5291eb Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Sat, 17 Oct 2026 19:56:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=AA=97=E5=8F=A3=E6=96=87=E6=A1=88):=20?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E7=AA=97=E5=8F=A3=E6=A0=87=E9=A2=98=E5=8F=8A?= =?UTF-8?q?=E7=A9=BA=E7=8A=B6=E6=80=81=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/webui/index.html | 2 +- assets/webui/ofdgo.js | 2 +- internal/webview/webview.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/webui/index.html b/assets/webui/index.html index a653812..41933b8 100644 --- a/assets/webui/index.html +++ b/assets/webui/index.html @@ -4,7 +4,7 @@ - OFDGo WebUI - OFD编辑器 + OFDGo - OFD编辑器 diff --git a/assets/webui/ofdgo.js b/assets/webui/ofdgo.js index df380a1..213f17d 100644 --- a/assets/webui/ofdgo.js +++ b/assets/webui/ofdgo.js @@ -10735,7 +10735,7 @@ function renderMeta(keepDetails = false) { }); el.documentSelect.value = String(doc.documentIndex || 0); el.metaPanel.setAttribute("data-busy", String(!!doc.detailsPending)); - document.title = `OFDGo WebUI - ${state.fileName}`; + document.title = state.doc ? `${nativeHost ? "OFDGo" : "OFDGo WebUI"} - ${state.fileName}` : "OFDGo - OFD编辑器"; el.metaFile.textContent = state.fileName; el.metaTitle.textContent = doc.title || "-"; el.metaAuthor.textContent = doc.author || "-"; diff --git a/internal/webview/webview.go b/internal/webview/webview.go index 23cf24c..ebd3c0e 100644 --- a/internal/webview/webview.go +++ b/internal/webview/webview.go @@ -652,7 +652,7 @@ func windowOptions(dataDir string) (guigo.Options, error) { } return guigo.Options{ AppID: applicationID, - Title: "OFDGo", + Title: "OFDGo - OFD编辑器", Icon: icon, Width: 1440, Height: 900,