aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/main.rs
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2022-10-20 23:14:11 +0200
committerGitHub <noreply@github.com>2022-10-20 23:14:11 +0200
commit5cc82fb80f5f91ed9d4a32a71e090a9a805ff2a9 (patch)
tree431d14cb0983e78bb8ac870e3ad55088a4d2345e /src-tauri/src/main.rs
parent31f26c4dd4a92bb5826ad2af9ccb9808fca40e40 (diff)
downloadFlightCore-5cc82fb80f5f91ed9d4a32a71e090a9a805ff2a9.tar.gz
FlightCore-5cc82fb80f5f91ed9d4a32a71e090a9a805ff2a9.zip
refactor: Various formatting and fixes (#23)
* refactor: Add error return type * style: Auto-format Only minor changes, did not take over all changes from auto-format. * refactor: Rename function to get FC version number To make it more clear which version number we're getting (FlightCore vs Northstar)
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r--src-tauri/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index 411e75c9..4826ef52 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -73,7 +73,7 @@ fn main() {
.invoke_handler(tauri::generate_handler![
force_panic,
find_game_install_location_caller,
- get_version_number,
+ get_flightcore_version_number,
get_northstar_version_number_caller,
check_is_northstar_outdated,
verify_install_location,
@@ -131,7 +131,7 @@ fn linux_checks() -> Result<(), String> {
#[tauri::command]
/// Returns the current version number as a string
-fn get_version_number() -> String {
+fn get_flightcore_version_number() -> String {
let version = env!("CARGO_PKG_VERSION");
if cfg!(debug_assertions) {
// Debugging enabled