feat: 将退出时不释放adb作为独立选项

This commit is contained in:
MistEO
2023-04-12 00:38:41 +08:00
parent dc2de435d6
commit 0563dfa35a
16 changed files with 78 additions and 69 deletions

View File

@@ -76,6 +76,7 @@ void asst::Controller::sync_params()
{
CHECK_EXIST(m_controller, );
m_controller->set_swipe_with_pause(m_swipe_with_pause);
m_controller->set_kill_adb_on_exit(m_kill_adb_on_exit);
}
cv::Mat asst::Controller::get_resized_image_cache() const
@@ -248,6 +249,12 @@ void asst::Controller::set_adb_lite_enabled(bool enable) noexcept
m_platform_type = enable ? PlatformType::AdbLite : PlatformType::Native;
}
void asst::Controller::set_kill_adb_on_exit(bool enable) noexcept
{
m_kill_adb_on_exit = enable;
sync_params();
}
const std::string& asst::Controller::get_uuid() const
{
return m_uuid;