refactor(ui): finish modal and property cleanup

This commit is contained in:
Karim Jerbi committed 2026-10-18 12:40:47 +01:00
1 parent cc947e77d3
commit 5ac8cc7c03
4 files changed
+208 -183

No files matched your search

+7 -3
View File
@@ -734,13 +734,17 @@ impl Ribbon {
}
}
/// Returns the index of the Layout module in the modules list.
#[allow(dead_code)] // layout-tab helpers; not yet wired
/// Returns the index of the Layout module in the modules list. Kept as a
/// routing helper for when the currently suppressed Layout ribbon tab is
/// enabled; it has no effect while that module is absent from the tabs.
#[allow(dead_code)]
pub fn layout_module_index(&self) -> Option<usize> {
self.modules.iter().position(|m| m.id() == "layout")
}
/// Returns true if the currently active tab is the Layout module.
/// Returns true if the currently active tab is the Layout module. The
/// predicate remains useful to the future Layout tab, which is currently
/// suppressed by the view layer.
#[allow(dead_code)]
pub fn active_is_layout(&self) -> bool {
self.modules