forked from 1b-agent/opencadstudio-upstream
fix: follow-ups to the merged PRs
- Selection filter: condition rows name INSERT as a block reference, as the object-type list does since #1726 (shared qselect_type_label). - MCP: re-pin the tool schema digest for the view_background action added in #1722. - -VIEW: fix an indentation slip and wrap two long lines from #1722. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
03445a540d
commit
74bffe77be
4 files changed
+21
-10
No files matched your search
+11
-6
@@ -1506,6 +1506,15 @@ pub(super) fn qselect_overlay<'a>(
|
||||
)
|
||||
}
|
||||
|
||||
/// Object type label for the selection filter; INSERT reads as a block reference.
|
||||
fn qselect_type_label(name: &str) -> String {
|
||||
if name == "Insert" {
|
||||
t!("Block Reference").into_owned()
|
||||
} else {
|
||||
t!(name).into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
fn qselect_content<'a>(
|
||||
state: &'a crate::app::QSelectState,
|
||||
types: &[String],
|
||||
@@ -1655,7 +1664,7 @@ fn qselect_content<'a>(
|
||||
let type_label = condition
|
||||
.type_filter
|
||||
.as_deref()
|
||||
.map(|name| t!(name).into_owned())
|
||||
.map(qselect_type_label)
|
||||
.unwrap_or_else(|| t!(QSELECT_ANY_TYPE).into_owned());
|
||||
let property_label = condition
|
||||
.property
|
||||
@@ -1727,11 +1736,7 @@ fn qselect_content<'a>(
|
||||
row![
|
||||
label(t!("Object type:")),
|
||||
iced::widget::pick_list(Some(type_sel), type_options, |value| {
|
||||
if value == "Insert" {
|
||||
t!("Block Reference").into_owned()
|
||||
} else {
|
||||
t!(value).into_owned()
|
||||
}
|
||||
qselect_type_label(value)
|
||||
})
|
||||
.on_select(|s: String| {
|
||||
if s == QSELECT_ANY_TYPE {
|
||||
|
||||
Reference in new issue
Block a user