mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 02:09:00 +00:00
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:
co-authored by
Claude Opus 5.5
parent
f9e8433cf1
commit
cf27faadf2
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user