From 966154f9a9feef1a13f22b3753bd31b53e6968f0 Mon Sep 17 00:00:00 2001 From: Evan Date: Sat, 3 Oct 2026 10:48:27 +0900 Subject: [PATCH] perf(windows): reserve toolbar setting checks --- platforms/windows/settings/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/platforms/windows/settings/main.cpp b/platforms/windows/settings/main.cpp index 5617a9ab8b..d1ee317c9f 100644 --- a/platforms/windows/settings/main.cpp +++ b/platforms/windows/settings/main.cpp @@ -2723,6 +2723,7 @@ struct MainWindow : WindowT { {L"settings", L"设置"}, }}; std::vector checks; + checks.reserve(components.size() + 1); checks.push_back({L"中英文切换(始终显示)", true, [](bool) {}, false}); for (const auto &[id, label] : components) { const std::wstring key = std::wstring(L"floating_toolbar.") + id;