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,