This commit is contained in:
2025-07-24 00:18:09 +01:00
parent 9c50db2b62
commit c3ae04ab75
7 changed files with 13 additions and 24 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
use egui::{TextEdit, text};
use egui::TextEdit;
use egui_commonmark::{CommonMarkCache, CommonMarkViewer};
use serde::{self, Deserialize, Serialize};
@@ -264,7 +264,7 @@ impl MainEditor {
}
fn editor_ui(&mut self, ui: &mut egui::Ui) {
let response = egui::ScrollArea::both()
let _response = egui::ScrollArea::both()
.auto_shrink([false, false])
.id_salt("editor_scroll")
.show(ui, |ui| {
+2
View File
@@ -15,6 +15,7 @@ pub struct ProjectContext {
}
impl ProjectContext {
#[allow(dead_code)]
pub fn new() -> Self {
Self::default()
}
@@ -37,6 +38,7 @@ impl ProjectContext {
std::fs::write(path, content).unwrap();
}
#[allow(dead_code)]
pub fn ui(&mut self, ui: &mut egui::Ui) {
// table
egui::Grid::new("context_editor")
+1 -1
View File
@@ -1,4 +1,4 @@
use egui::{Response, RichText, TextEdit, UiBuilder};
use egui::{Response, RichText, TextEdit};
use serde::{Deserialize, Serialize};
use crate::{PROJECT_FOLDER, util};