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,
}
impl Scope {
pub fn current(app: &App) -> Option<Self> {
pub(crate) fn current(app: &App) -> Option<Self> {
if let Some(context) = app.scenario_context() {
Some(Self {
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)
&& !app.behavior.has_pending()
&& !app.draft_dirty()