kitgit

tirbofish/dropbear · commit

ff9c76d143d00760918034659f647f2df65e2e96

merge

Unverified

tk <4tkbytes@pm.me> · 2025-07-23 23:28

view full diff

diff --git a/.cargo/config.toml b/.cargo/config.toml
index 29937b0..f1863bb 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -1,5 +1,5 @@
 [build]
-jobs = 8 
+jobs = 8
 
 [profile.dev]
 opt-level = 0
diff --git a/eucalyptus/Cargo.toml b/eucalyptus/Cargo.toml
index b85a82a..f8394cb 100644
--- a/eucalyptus/Cargo.toml
+++ b/eucalyptus/Cargo.toml
@@ -12,7 +12,9 @@ anyhow = "1.0.98"
 ron = "0.10.1"
 chrono = "0.4.41"
 egui-toast = { git = "https://github.com/creativcoder/egui-toast" }
-egui_dock = { git = "https://github.com/Adanos020/egui_dock" }
+egui_dock = { git = "https://github.com/Adanos020/egui_dock", features = [
+    "serde",
+] }
 once_cell = "1.21"
 pyo3 = { version = "0.25", features = ["auto-initialize"] }
 
diff --git a/eucalyptus/src/editor.rs b/eucalyptus/src/editor.rs
index a7ff0a5..a079a59 100644
--- a/eucalyptus/src/editor.rs
+++ b/eucalyptus/src/editor.rs
@@ -1,4 +1,4 @@
-use std::{collections::HashSet, path::PathBuf, str::FromStr, sync::Arc};
+use std::{collections::HashSet, path::PathBuf, sync::Arc};
 
 use dropbear_engine::{
     async_trait::async_trait,
@@ -74,6 +74,21 @@ impl Editor {
         }
     }
 
+    pub fn save_project_config(&self) -> anyhow::Result<()> {
+        let mut config = PROJECT.write().unwrap();
+        config.dock_layout = Some(self.dock_state.clone());
+        let project_path = config.project_path.clone();
+        config.write_to(&PathBuf::from(project_path))
+    }
+
+    pub fn load_project_config(&mut self) -> anyhow::Result<()> {
+        let config = PROJECT.read().unwrap();
+        if let Some(layout) = &config.dock_layout {

Large diffs are not rendered by default. Showing the first 50 of 244 lines. Show full diff