From 54ca3760f78cbafe6ed25ded052948a9970096ae Mon Sep 17 00:00:00 2001 From: none Date: Mon, 8 May 2023 10:59:42 +0200 Subject: [PATCH] fix error when filename is errorous update library --- library | 2 +- src-tauri/src/main.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/library b/library index 3326ee8..02d6683 160000 --- a/library +++ b/library @@ -1 +1 @@ -Subproject commit 3326ee886b0121237a84217ab9508728c722f8d4 +Subproject commit 02d6683cd84e54e3093bebb0910b3cef7210203f diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 8a7bbad..2d6c9c5 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -49,7 +49,7 @@ fn get_entries() -> Vec { for entry in ip_lib::get_entries() { let entry_filename = entry.unwrap().file_name(); let ent = entry_filename.to_str().unwrap(); - if ent != "token.ipasst" { + if ent != "token.ipasst" && ent.len()>6 { vector.insert(0, ent[..ent.len()-6].to_string()); } } @@ -74,6 +74,7 @@ fn remove_entry(name: &str) -> bool { fn open_authorize() -> u32 { let code:u32 = rand::random(); open::that(format!("https://ipost.rocks/authorize?id=1&extra={}",code)).unwrap(); + //the IPass app id is 1 code }