fix: skins count display when no skins are in the skins directory

This commit is contained in:
2025-07-21 22:54:21 +02:00
parent fd4d911075
commit 2549b18e8c
5 changed files with 24 additions and 24 deletions

View File

@@ -720,7 +720,6 @@ pub async fn has_net8() -> bool {
is_net8_installed().await
}
#[cfg(windows)]
#[tauri::command]
pub fn encrypt_string(string: String, entropy: String) -> String {
let encrypted = encrypt_password(&string, &entropy);
@@ -730,10 +729,3 @@ pub fn encrypt_string(string: String, entropy: String) -> String {
Err(_) => string,
}
}
// NOTE: should not be called by tauri on non windows systems, return the string nonthenless
#[cfg(not(windows))]
#[tauri::command]
pub fn encrypt_string(string: String, _entropy: String) -> String {
string
}