fix: IDisposable contract + zh-Hans webinterface translation
- Ui/Debugger.cs DebuggerWindow now declares IDisposable so the existing Dispose() method participates in disposal patterns (using-blocks, container cleanup). Previously the method existed but the type didn't advertise it, so callers had no way to invoke it correctly and the command-handler subscription leaked - Resources/Language.zh-Hans.resx Webinterface_Start_Success contained "网页界面已停止。" (web interface stopped) for what is semantically the start-success message; corrected to "网页界面已启动。" (web interface started). String is unused in the Hellion fork (webinterface removed) but remains in the resource bundle for upstream compatibility
This commit is contained in:
@@ -1364,7 +1364,7 @@
|
|||||||
<value>启动</value>
|
<value>启动</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Webinterface_Start_Success" xml:space="preserve">
|
<data name="Webinterface_Start_Success" xml:space="preserve">
|
||||||
<value>网页界面已停止。</value>
|
<value>网页界面已启动。</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Webinterface_Start_Failed" xml:space="preserve">
|
<data name="Webinterface_Start_Failed" xml:space="preserve">
|
||||||
<value>网页界面启动失败。检查 /xllog 获取更多信息。</value>
|
<value>网页界面启动失败。检查 /xllog 获取更多信息。</value>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using Lumina.Text.ReadOnly;
|
|||||||
|
|
||||||
namespace HellionChat.Ui;
|
namespace HellionChat.Ui;
|
||||||
|
|
||||||
public class DebuggerWindow : Window
|
public class DebuggerWindow : Window, IDisposable
|
||||||
{
|
{
|
||||||
private readonly Plugin Plugin;
|
private readonly Plugin Plugin;
|
||||||
private readonly ChatLogWindow ChatLogWindow;
|
private readonly ChatLogWindow ChatLogWindow;
|
||||||
|
|||||||
Reference in New Issue
Block a user