Skip to content

Commit

Permalink
Fixed mod option descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
NiceneNerd committed Jul 3, 2024
1 parent 281ab56 commit e26369a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Restored missing Package button to Window menu
- Fixed option descriptions not showing on multiple choice


## [0.12.0]
Expand Down
7 changes: 4 additions & 3 deletions src/gui/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ impl App {
} else {
mod_.enabled_options.retain(|o| o != opt);
}
if !opt.description.is_empty() {
ui.small(opt.description.as_str());
}
}
if !opt.description.is_empty() {
ui.small(opt.description.as_str());
}
});
}
Expand All @@ -95,6 +95,7 @@ impl App {
ui.colored_label(visuals::RED, "You must set all required option groups");
}
ui.horizontal(|ui| {
ui.add_space(2.);
ui.with_layout(Layout::right_to_left(Align::Center), |ui| {
if ui.add_enabled(done, Button::new("OK")).clicked() {
let (mod_, update) = self.options_mod.take().unwrap();
Expand Down

0 comments on commit e26369a

Please sign in to comment.