From d6f0d30f9ae79245fc8ce7ad593e79841cc3f2f1 Mon Sep 17 00:00:00 2001 From: ezequielnick <107352853+ezequielnick@users.noreply.github.com> Date: Tue, 5 Aug 2025 19:20:32 +0800 Subject: [PATCH] fix: console selectedKeys warning --- src/renderer/src/pages/mihomo.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/pages/mihomo.tsx b/src/renderer/src/pages/mihomo.tsx index ce0e85d..ef4a7c9 100644 --- a/src/renderer/src/pages/mihomo.tsx +++ b/src/renderer/src/pages/mihomo.tsx @@ -207,7 +207,11 @@ const Mihomo: React.FC = () => { className="w-[100px]" size="sm" aria-label={t('mihomo.selectCoreVersion')} - selectedKeys={new Set([core])} + selectedKeys={new Set([ + enableSmartCore + ? 'mihomo-smart' + : (core === 'mihomo-smart' ? 'mihomo' : core) + ])} disallowEmptySelection={true} onSelectionChange={async (v) => { handleConfigChangeWithRestart('core', v.currentKey as 'mihomo' | 'mihomo-alpha' | 'mihomo-smart')