chore: restrict ui crate visibility and drop unused components

This commit is contained in:
2026-10-03 19:57:56 +07:00
parent 1f350f511e
commit 88d3840fd2
20 changed files with 67 additions and 1687 deletions
-8
View File
@@ -13,9 +13,6 @@ pub trait WindowExtension: Sized {
where
F: Fn(Dialog, &mut Window, &mut App) -> Dialog + 'static;
/// Return true, if there is an active Dialog.
fn has_active_dialog(&mut self, cx: &mut App) -> bool;
/// Closes the last active Dialog.
fn close_dialog(&mut self, cx: &mut App);
@@ -55,11 +52,6 @@ impl WindowExtension for Window {
})
}
#[inline]
fn has_active_dialog(&mut self, cx: &mut App) -> bool {
Root::read(self, cx).has_active_dialogs()
}
#[inline]
fn close_dialog(&mut self, cx: &mut App) {
Root::update(self, cx, move |root, window, cx| {