pdf-chrome-w2: pass the collection to key_reorder; spec_text visible in the crate (lead, compile)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Dylan M. Taylor
2026-11-18 03:54:42 -05:00
co-authored by Claude Opus 5.5
parent f9e8433cf1
commit cf27faadf2
2 changed files with 2 additions and 2 deletions
@@ -245,7 +245,7 @@ impl<C: Collection> ItemsHooks<'_, '_, C> {
&& !self.source.section_stop(at)
&& comp.can_drag(&self.source.key(at))
{
self.key_reorder(cx, props, at, mv);
self.key_reorder(comp, cx, props, at, mv);
}
if props.rename
&& cx.core.intents.take(Intent::Rename)
+1 -1
View File
@@ -62,7 +62,7 @@ pub(crate) struct TipIn<'a> {
}
/// The text a tooltip shows for `spec`: the disabled text while disabled.
fn spec_text(env: &crate::runtime::env::EnvView<'_>, spec: &TooltipSpec, enabled: bool) -> String {
pub(crate) fn spec_text(env: &crate::runtime::env::EnvView<'_>, spec: &TooltipSpec, enabled: bool) -> String {
let label = match (&spec.disabled_text, enabled) {
(Some(disabled), false) => disabled,
_ => &spec.text,