aboutsummaryrefslogtreecommitdiff
path: root/src-tauri
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-23 02:17:33 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-23 02:17:33 +0200
commit4557140aaea7ca3b9fbd670d8eb534e488799d98 (patch)
tree2e0d06061e3facc33d5c43df2a7ebc2e9fea9762 /src-tauri
parent175ff756f706828fc4eb2e9d7782230ef467c062 (diff)
downloadFlightCore-4557140aaea7ca3b9fbd670d8eb534e488799d98.tar.gz
FlightCore-4557140aaea7ca3b9fbd670d8eb534e488799d98.zip
Show if debug in version number
Diffstat (limited to 'src-tauri')
-rw-r--r--src-tauri/src/main.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index 536acbe5..264a8395 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -106,7 +106,13 @@ fn force_panic() {
/// Returns the current version number as a string
fn get_version_number() -> String {
let version = env!("CARGO_PKG_VERSION");
- format!("v{}", version)
+ if cfg!(debug_assertions) {
+ // Debugging enabled
+ format!("v{} (debug mode)", version)
+ } else {
+ // Debugging disabled
+ format!("v{}", version)
+ }
}
#[tauri::command]