git.lucas.co / cce-files
file manager
git clone https://git.lucas.co/cce-files.git

commit167516ab0cdf83dd6d35a27f6593ff2ab5214e02
parent4b9f1dffa0
authorLucas Galante <[email protected]>
date2026-07-08 13:24
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,
 }