From b81f7bb7e1ff55b8d510fd43e3008de3d34c6213 Mon Sep 17 00:00:00 2001 From: status102 Date: Tue, 7 Nov 2023 22:18:03 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaCore/Task/Interface/CopilotTask.cpp | 2 +- src/MaaWpfGui/Res/Styles/MdXaml.xaml | 40 ++++++++++------------ 2 files changed, 20 insertions(+), 22 deletions(-) diff --git a/src/MaaCore/Task/Interface/CopilotTask.cpp b/src/MaaCore/Task/Interface/CopilotTask.cpp index 18efe78a0b..acd7fb3099 100644 --- a/src/MaaCore/Task/Interface/CopilotTask.cpp +++ b/src/MaaCore/Task/Interface/CopilotTask.cpp @@ -39,7 +39,7 @@ asst::CopilotTask::CopilotTask(const AsstCallback& callback, Assistant* inst) m_medicine_task_ptr = std::make_shared(callback, inst, TaskType); m_medicine_task_ptr->set_tasks({ "BattleStartPre@UseMedicine" }).set_retry_times(0).set_ignore_error(true); - m_medicine_task_ptr->register_plugin()->set_count(999); + m_medicine_task_ptr->register_plugin()->set_count(999999); m_subtasks.emplace_back(m_medicine_task_ptr); m_subtasks.emplace_back(m_formation_task_ptr)->set_retry_times(0); diff --git a/src/MaaWpfGui/Res/Styles/MdXaml.xaml b/src/MaaWpfGui/Res/Styles/MdXaml.xaml index a4896b678d..eb94079242 100644 --- a/src/MaaWpfGui/Res/Styles/MdXaml.xaml +++ b/src/MaaWpfGui/Res/Styles/MdXaml.xaml @@ -1,14 +1,12 @@ + xmlns:mdhtml="clr-namespace:MdXaml.Html;assembly=MdXaml.Html"> - + + The Table's style don't seem to support border-collapse. + By making the ruled line width 0.5 and applying it to cell and table, + it looks like the ruled lines are not doubled. + --> @@ -136,7 +134,7 @@ - +