aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/application.vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2022-03-30 10:36:07 -0600
committerMarvin W <git@larma.de>2022-03-30 10:36:07 -0600
commit339d1d8f557e88ef6bb5812980b8988dc8fdf10d (patch)
treebc5c509f7d3ed80cdc6bcb68a7a283dde6d73fba /main/src/ui/application.vala
parentc5ed719b665938a59011913e39ce94df63690b40 (diff)
downloaddino-339d1d8f557e88ef6bb5812980b8988dc8fdf10d.tar.gz
dino-339d1d8f557e88ef6bb5812980b8988dc8fdf10d.zip
Fix Version handling, add function to retrieve short version without git commit
Diffstat (limited to 'main/src/ui/application.vala')
-rw-r--r--main/src/ui/application.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/ui/application.vala b/main/src/ui/application.vala
index 2fd5320e..6c02087f 100644
--- a/main/src/ui/application.vala
+++ b/main/src/ui/application.vala
@@ -42,7 +42,7 @@ public class Dino.Ui.Application : Gtk.Application, Dino.Application {
startup.connect(() => {
if (print_version) {
- print(@"Dino $(Dino.VERSION)\n");
+ print(@"Dino $(Dino.get_version())\n");
Process.exit(0);
}
@@ -270,7 +270,7 @@ public class Dino.Ui.Application : Gtk.Application, Dino.Application {
}
private void show_about_window() {
- string? version = Dino.VERSION.strip().length == 0 ? null : Dino.VERSION;
+ string? version = Dino.get_version().strip().length == 0 ? null : Dino.get_version();
if (version != null && !version.contains("git")) {
switch (version.substring(0, 3)) {
case "0.2": version = @"$version - <span font_style='italic'>Mexican Caribbean Coral Reefs</span>"; break;