重整cmake

This commit is contained in:
2026-08-11 15:11:56 +08:00
parent 5401a14708
commit 274dd4c044
12 changed files with 307 additions and 157 deletions
+10 -2
View File
@@ -1756,7 +1756,9 @@ struct Gallery_Plot_Session::Impl {
return false;
}
else if constexpr (std::is_same_v<T, Gallery_Request>) {
return value.kind != Gallery_Request_Kind::Catalog;
return value.kind != Gallery_Request_Kind::Catalog &&
value.kind != Gallery_Request_Kind::Refresh &&
value.kind != Gallery_Request_Kind::Feedback;
}
else {
return true;
@@ -1803,8 +1805,14 @@ struct Gallery_Plot_Session::Impl {
Web_Response_Type::Json,
Gallery_Protocol::error_json("请先发送 gallery_open")
};
if (request.kind == Gallery_Request_Kind::Feedback) {
if (update_client_metrics(request.message)) {
++scheduler_revision;
scheduler_condition.notify_all();
}
return std::nullopt;
}
if (request.kind == Gallery_Request_Kind::Refresh) {
update_client_metrics(request.message);
return Web_Response{
Web_Response_Type::Json,
Gallery_Protocol::case_json(scene->case_id(), scene->state(),