file manager
git clone https://git.lucas.co/cce-files.git
refactor: Graph field becomes Adapted<Graph> (cce-ui Phase 5m)
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LkfJazPs9bRchkcozmxXCX
src/main.rs | 2 +-
src/pages/network.rs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main.rs b/src/main.rs
index d82c84b..fa8f9c8 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -236,7 +236,7 @@ struct NetworkContainer {
pub base: cce_ui::widget::Widget,
pub parent: Option<*mut (dyn cce_ui::widget::Element + 'static)>,
pub breadcrumb: *mut cce_ui::widget::Adapted<cce_ui::widget::Breadcrumb>,
- pub graph: *mut cce_ui::widget::Graph,
+ pub graph: *mut cce_ui::widget::Adapted<cce_ui::widget::Graph>,
}
impl cce_ui::widget::Element for NetworkContainer {
diff --git a/src/pages/network.rs b/src/pages/network.rs
index 3cdea5f..9b864fa 100644
--- a/src/pages/network.rs
+++ b/src/pages/network.rs
@@ -4,7 +4,7 @@ use crate::pages::browse::{BrowseState, DirEntry};
use cce_ui::widget::{Adapted, Graph, GraphNode, Element, Breadcrumb, GraphController, PathController};
pub struct NetworkState {
- pub graph: Graph,
+ pub graph: Adapted<Graph>,
pub breadcrumb: Adapted<Breadcrumb>,
pub last_dir: PathBuf,
}