aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/main.rs
diff options
context:
space:
mode:
authorRémy Raes <contact@remyraes.com>2022-10-20 10:12:36 +0200
committerGitHub <noreply@github.com>2022-10-20 10:12:36 +0200
commit2e5c9b034d6bd7aa6fddc7f7f75be071b30b9c5a (patch)
tree6ec4bfbca57658543e0cf6d610af1c21f2de106c /src-tauri/src/main.rs
parent8edfb16aba17f082a3a0da891d8e49658bf36530 (diff)
parent9b4e032b73e3f40c8c4126a25356f467a833d239 (diff)
downloadFlightCore-2e5c9b034d6bd7aa6fddc7f7f75be071b30b9c5a.tar.gz
FlightCore-2e5c9b034d6bd7aa6fddc7f7f75be071b30b9c5a.zip
Merge branch 'GeckoEidechse:main' into refactor/router-view
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r--src-tauri/src/main.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index a33f836c..411e75c9 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -120,12 +120,13 @@ fn is_debug_mode() -> bool {
#[tauri::command]
/// Returns true if linux compatible
-fn linux_checks() -> bool {
- if get_host_os() == "windows" {
- false
- } else {
- linux_checks_librs()
+fn linux_checks() -> Result<(), String> {
+ // Early return if Windows
+ if get_host_os() == "windows" {
+ return Err("Not available on Windows".to_string());
}
+
+ linux_checks_librs()
}
#[tauri::command]