Skip to content

Commit

Permalink
Minor UI fix (#34)
Browse files Browse the repository at this point in the history
* Typo: Downloadind -> Downloading

* Fix path of newly created project in recent projects section

* Should probably clone new project path to be safe

* Linter says this clone is redundant

* Run code formatter on src/filesystem.rs
  • Loading branch information
white-axe authored Sep 8, 2023
1 parent 346071d commit dc5092d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,12 @@ impl Filesystem {
{
let projects = &mut state!().saved_state.borrow_mut().recent_projects;

let path = self.project_path().unwrap().display().to_string();
let path = self
.project_path()
.unwrap()
.join(format!("{name}.lumproj"))
.display()
.to_string();
*projects = projects
.iter()
.filter_map(|p| if *p != path { Some(p.clone()) } else { None })
Expand Down
2 changes: 1 addition & 1 deletion src/windows/new_project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl window::Window for Window {

if self.progress.zip_total.load(Ordering::Relaxed) != 0 {
ui.label(format!(
"Downloadind & Unzipping {}/{}",
"Downloading & Unzipping {}/{}",
self.progress.zip_current.load(Ordering::Relaxed) + 1,
self.progress.zip_total.load(Ordering::Relaxed)
));
Expand Down

0 comments on commit dc5092d

Please sign in to comment.