Skip to content

Commit

Permalink
Fix bug in no-gui build, add people to credits
Browse files Browse the repository at this point in the history
  • Loading branch information
martinber committed May 13, 2020
1 parent 6727c9a commit d79938b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 10 deletions.
15 changes: 13 additions & 2 deletions docs/development.md
Expand Up @@ -84,7 +84,13 @@ Notes:

- Histogram equalization, independent for each channel.

- Better filenames on config file.
- Update test.sh.

- Allow different timezones per filename.

- The program eats RAM when opening bad custom TLE files.

- More information link not working on Windows.

- Someday:

Expand Down Expand Up @@ -356,7 +362,9 @@ If you want to disable this you can do it from the

- Ossi Herrala: Did some fixes and updated dependencies.

- Arcadie Z.: Added a feature for rotating images.
- Arcadie Z.: Added a feature for rotating images. Did some fixes.

- Nodraak: Added tips when saving files.

- Grant T. Olson: OSX build instructions.

Expand All @@ -371,6 +379,9 @@ If you want to disable this you can do it from the
- Gagootron, xxretartistxx and unknownantipatriot: Provided example images of
missing samples.

- BGNLouie, nosduh2, samarrangepas, KiwiEntropy, budude2, K2SDR, K6KZO,
TheLAX18: Provided recordings to test map overlays.

## References

- [Error Handling in Rust][1].
Expand Down
6 changes: 2 additions & 4 deletions src/err.rs
Expand Up @@ -36,7 +36,7 @@ pub enum Error {

/// Functionality not available because the program was compiled without
/// those features
FeatureNotAvailable(Vec<String>),
FeatureNotAvailable(String),
}

impl std::fmt::Display for Error {
Expand All @@ -50,9 +50,7 @@ impl std::fmt::Display for Error {
Error::Internal(ref msg) => f.write_str(msg.as_str()),
Error::RateOverflow(ref msg) => f.write_str(msg.as_str()),
Error::Shapefile(ref msg) => f.write_str(msg.as_str()),
Error::FeatureNotAvailable(ref features) =>
write!(f, "Program compiled without support for features: {:?}",
features),
Error::FeatureNotAvailable(ref msg) => f.write_str(msg.as_str()),
}
}
}
Expand Down
8 changes: 5 additions & 3 deletions src/gui/gui.rs
Expand Up @@ -462,9 +462,11 @@ fn build_system_menu(widgets: &Widgets) {
dialog.add_credit_section("Thank you",
&[
"RTL-SDR.com", "pietern", "Ossi Herrala", "Arcadie Z.",
"Grant T. Olson", "FMighty", "Sylogista", "Peter Vogel",
"wren84", "Florentin314", "Gagootron", "xxretartistxx",
"unknownantipatriot",
"Nodraak", "Grant T. Olson", "FMighty", "Sylogista",
"Peter Vogel", "wren84", "Florentin314", "Gagootron",
"xxretartistxx", "unknownantipatriot", "BGNLouie",
"nosduh2", "samarrangepas", "KiwiEntropy", "budude2",
"K2SDR", "K6KZO", "TheLAX18"
]);

dialog.set_website_label(Some("noaa-apt website"));
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Expand Up @@ -68,7 +68,7 @@ fn inner_main() -> err::Result<()> {
{
return Err(err::Error::FeatureNotAvailable("Program compiled \
without gui support, please download the gui version of \
this program or use --help to see available options."
this program or use --help to see available options.".to_string()
));
}

Expand Down

0 comments on commit d79938b

Please sign in to comment.