Feature: Show TLS and MCP state in the server status bar
The main window's status bar now carries two short panes between the host count and the FRP address. The first reports whether the server identity is loaded, using the same ServerTlsIdentity::IsReady() check the rest of the UI uses, so a menu that claims TLS is on cannot leave the bar saying otherwise when the certificate failed to load. The second reports whether MCP is enabled and, while it is, which protocol the endpoint speaks: (HTTP) or (HTTPS) according to McpHttps. Both panes follow the existing 60 second statistics tick, and toggling either switch in its dialog refreshes them at once instead of leaving the bar stale until the next tick. Pane widths are measured from the widest text each pane can show in the current language instead of hardcoded pixels, and the measurement selects the status bar's own font: DEFAULT_GUI_FONT is about 8% narrower than the Segoe UI the bar paints with, which would have clipped "MCP: ... (HTTPS)" at higher display scaling. Switching HTTP/HTTPS keeps the column width steady, and turning MCP off lets it shrink again. The MCP settings dialog was also missing translations for several of its labels, the file write switch among them, which is why they stayed Chinese in the English UI. Those keys, together with the status bar ones, are added to all three language files. Co-Authored-By: deepseek-flash
This commit is contained in:
1 parent
e99092ca70
commit
559681ea01
7 files changed
+124
-23
No files matched your search
@@ -2011,12 +2011,12 @@ MCP
|
||||
端口需为 1-65535 的数字=Port muss eine Zahl zwischen 1 und 65535 sein
|
||||
Token 不能为空=Token darf nicht leer sein
|
||||
MCP 设置已保存。=MCP-Einstellungen gespeichert.
|
||||
启用/端口/绑定地址/Token/只读/白名单/持久终端/远程控制/文件传输/管理操作/主机管理/危险主机操作的改动需重启程序生效。=Aenderungen an Aktivierung/Port/Bindeadresse/Token/Nur-Lesen/Whitelist/persistentem Terminal/Fernsteuerung/Dateiuebertragung/Verwaltungsoperationen/Maschinenverwaltung/gefaehrlichen Maschinenoperationen werden nach Neustart wirksam.
|
||||
启用/端口/绑定地址/Token/只读/白名单/持久终端/远程控制/文件传输/文件写入/管理操作/主机管理/危险主机操作的改动需重启程序生效。=Aenderungen an Aktivierung/Port/Bindeadresse/Token/Nur-Lesen/Whitelist/persistentem Terminal/Fernsteuerung/Dateiuebertragung/Dateischreiben/Verwaltungsoperationen/Maschinenverwaltung/gefaehrlichen Maschinenoperationen werden nach Neustart wirksam.
|
||||
只读模式(禁命令执行)=Nur-Lesen-Modus (Befehlsausfuehrung deaktiviert)
|
||||
命令白名单=Befehls-Whitelist
|
||||
MCP命令执行=MCP-Befehlsausfuehrung
|
||||
启用持久终端(全命令,无白名单)=Persistentes Terminal aktivieren (volle Befehle, keine Whitelist)
|
||||
持久终端、远程控制与管理操作仅在只读模式关闭时生效。=Persistentes Terminal, Fernsteuerung und Verwaltungsoperationen werden nur wirksam, wenn der Nur-Lesen-Modus aus ist.
|
||||
持久终端、远程控制、管理操作与文件写入仅在只读模式关闭时生效。=Persistentes Terminal, Fernsteuerung, Verwaltungsoperationen und Dateischreiben werden nur wirksam, wenn der Nur-Lesen-Modus aus ist.
|
||||
MCP持久终端=MCP-persistentes Terminal
|
||||
MCP远程控制=MCP-Fernsteuerung
|
||||
MCP文件传输=MCP-Dateiuebertragung
|
||||
@@ -2149,3 +2149,15 @@ Y
|
||||
画面 %dx%d;上报 %s;系数为真实除以上报=Bild %dx%d; gemeldet %s; Faktor: echt/gemeldet
|
||||
缩放系数需在 0.2 到 5.0 之间。=Skalierungsfaktoren muessen zwischen 0.2 und 5.0 liegen.
|
||||
已按 画面/上报 自动填写,可修改=Automatisch aus Bild/Meldung; aenderbar
|
||||
; ===== Status Bar TLS/MCP =====
|
||||
TLS: 有=TLS: Ja
|
||||
TLS: 无=TLS: Nein
|
||||
MCP: 开=MCP: An
|
||||
MCP: 关=MCP: Aus
|
||||
; ===== MCP Settings (file write / HTTPS) =====
|
||||
启用文件写入(删除/改名/建目录,不可恢复)=Dateischreiben aktivieren (Loeschen/Umbenennen/Ordner, nicht umkehrbar)
|
||||
文件写入包含删除(不可恢复)、改名与建目录;删除会拒绝盘符根与系统目录。=Dateischreiben umfasst Loeschen (nicht umkehrbar), Umbenennen und Ordnererstellung; Loeschen lehnt Laufwerkswurzeln und Systemverzeichnisse ab.
|
||||
启用 HTTPS(本端口同时接受 TLS 连接)=HTTPS aktivieren (dieser Port akzeptiert auch TLS-Verbindungen)
|
||||
证书或私钥文件不存在,请检查路径。=Zertifikat- oder Schluesseldatei nicht vorhanden; bitte Pfad pruefen.
|
||||
HTTPS 开关与证书路径的改动需重启程序生效。=Aenderungen am HTTPS-Schalter und an den Zertifikatspfaden werden nach Neustart wirksam.
|
||||
证书须为 PEM 格式,私钥须为 PKCS#8 格式。=Zertifikat muss im PEM-Format vorliegen, Schluessel im PKCS#8-Format.
|
||||
Reference in new issue
Block a user