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