Skip to content

Commit

Permalink
Fix not being able to open vmparams on first start
Browse files Browse the repository at this point in the history
Now parses vmparams file when install directory is provided and saved.
  • Loading branch information
Iain Laird committed Jun 14, 2021
1 parent 3c4ac62 commit a598a4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ impl Application for App {
}

commands.push(Command::perform(vmparams.clone().save(install_dir.clone()), Message::VMParamsSaved))
} else {
commands.push(Command::perform(VMParams::load(install_dir.clone()), Message::VMParamsLoaded))
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/gui/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ impl Settings {
.into()
);
} else {
controls.push(Container::new(Text::new("VMParams editing is currently unavailable.")).padding(7).into())
controls.push(Container::new(Text::new("VMParams editing is currently unavailable. Have you selected/saved a Starsector installation directory?")).padding(7).into())
}
} else {
controls.push(Container::new(Text::new(" ")).padding(7).into())
Expand Down

0 comments on commit a598a4d

Please sign in to comment.