idk
This commit is contained in:
@@ -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| {
|
||||
|
||||
@@ -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
@@ -1,4 +1,4 @@
|
||||
use egui::{Response, RichText, TextEdit, UiBuilder};
|
||||
use egui::{Response, RichText, TextEdit};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::{PROJECT_FOLDER, util};
|
||||
|
||||
Reference in New Issue
Block a user