Keep concrete canvas App access within the desktop crate

This commit is contained in:
2026-09-11 10:55:15 -07:00
parent 06ec962129
commit ff0175488a
@@ -63,7 +63,7 @@ pub struct Scope {
pub epoch: u64, pub epoch: u64,
} }
impl Scope { impl Scope {
pub fn current(app: &App) -> Option<Self> { pub(crate) fn current(app: &App) -> Option<Self> {
if let Some(context) = app.scenario_context() { if let Some(context) = app.scenario_context() {
Some(Self { Some(Self {
document: context.document, document: context.document,
@@ -81,7 +81,7 @@ impl Scope {
}) })
} }
} }
pub fn input_owner(app: &App) -> Option<Self> { pub(crate) fn input_owner(app: &App) -> Option<Self> {
if keyboard_enabled(app) if keyboard_enabled(app)
&& !app.behavior.has_pending() && !app.behavior.has_pending()
&& !app.draft_dirty() && !app.draft_dirty()