Skip to content

Commit 6bfb940

Browse files
[Viewer] Set the Version in Help Text
The help text hard-coded the version as 1.0.0. Used the Cargo enviornment variable instead so the version can be tracked automatically.
1 parent 4db141b commit 6bfb940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fpga_arch_viewer/src/viewer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ impl eframe::App for FpgaViewer {
659659
ui.vertical_centered(|ui| {
660660
ui.heading("FPGA Architecture Visualizer");
661661
ui.add_space(10.0);
662-
ui.label("Version 1.0.0");
662+
ui.label(format!("Version {}", env!("CARGO_PKG_VERSION")));
663663
ui.add_space(10.0);
664664
ui.label("A Rust-based visualizer for VTR FPGA architecture description files.");
665665
ui.add_space(10.0);

0 commit comments

Comments
 (0)