Skip to content

Commit e7ef271

Browse files
authored
Fix MXC binary restore and settings hotkey
Fixes the Settings hotkey to open the Settings page and refreshes the MXC helper restore so stale helper binaries are not reused while keeping npm restore incremental.
1 parent 1e69513 commit e7ef271

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎src/OpenClaw.Tray.WinUI/App.xaml.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3500,7 +3500,7 @@ private void OnVoiceHotkeyPressed(object? sender, EventArgs e)
35003500

35013501
private void OnSettingsHotkeyPressed(object? sender, EventArgs e)
35023502
{
3503-
OnUiThread(() => ShowHub("companion"));
3503+
OnUiThread(ShowSettings);
35043504
}
35053505

35063506
#endregion

‎src/OpenClaw.Tray.WinUI/OpenClaw.Tray.WinUI.csproj‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,11 @@
196196
<Error Text="Unsupported RuntimeIdentifier '$(RuntimeIdentifier)' for MXC sandbox. Only win-x64 and win-arm64 are supported. Override -p:MxcArch=x64 or -p:MxcArch=arm64 if you know what you are doing." />
197197
</Target>
198198

199-
<Target Name="RestoreMxcNodeBridge" BeforeTargets="Build;Publish;CopyWxcExecToOutput;CopyWxcExecToPublish" Condition="'$(SkipMxcNodeBridgeRestore)' != 'true' And Exists('$(OpenClawRepoRoot)package-lock.json') And !Exists('$(OpenClawRepoRoot)node_modules\@microsoft\mxc-sdk\package.json')">
199+
<Target Name="RestoreMxcNodeBridge"
200+
BeforeTargets="Build;Publish;CopyWxcExecToOutput;CopyWxcExecToPublish"
201+
Condition="'$(SkipMxcNodeBridgeRestore)' != 'true' And Exists('$(OpenClawRepoRoot)package-lock.json')"
202+
Inputs="$(OpenClawRepoRoot)package-lock.json"
203+
Outputs="$(OpenClawRepoRoot)node_modules\.package-lock.json">
200204
<Message Importance="high" Text="Restoring @microsoft/mxc-sdk to extract wxc-exec.exe ($(MxcArch))" />
201205
<Exec Command="npm ci --no-audit --no-fund" WorkingDirectory="$(OpenClawRepoRoot)" />
202206
</Target>

0 commit comments

Comments
 (0)