fix paths
This commit is contained in:
+2
-1
@@ -32,7 +32,7 @@ impl App {
|
|||||||
mut self,
|
mut self,
|
||||||
terminal: &mut Terminal<CrosstermBackend<io::Stdout>>,
|
terminal: &mut Terminal<CrosstermBackend<io::Stdout>>,
|
||||||
) -> color_eyre::Result<()> {
|
) -> color_eyre::Result<()> {
|
||||||
let project_root = Path::new("/home/nikkuss/dotfiles-new");
|
let project_root = std::env::current_dir()?;
|
||||||
self.events.send(AppEvent::LoadManifest);
|
self.events.send(AppEvent::LoadManifest);
|
||||||
|
|
||||||
while self.running {
|
while self.running {
|
||||||
@@ -51,6 +51,7 @@ impl App {
|
|||||||
AppEvent::LoadManifest => {
|
AppEvent::LoadManifest => {
|
||||||
if !self.isloadingmanifest {
|
if !self.isloadingmanifest {
|
||||||
let tx = self.events.clone_sender();
|
let tx = self.events.clone_sender();
|
||||||
|
let project_root = project_root.clone();
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
let result = load_manifest(&project_root).await;
|
let result = load_manifest(&project_root).await;
|
||||||
let _ = tx.send(Event::App(AppEvent::ManifestLoaded(result)));
|
let _ = tx.send(Event::App(AppEvent::ManifestLoaded(result)));
|
||||||
|
|||||||
Reference in New Issue
Block a user