Skip to content

Commit

Permalink
fix: removing logos deletes files properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Tormak9970 committed May 15, 2023
1 parent 4793f61 commit 39c1d85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@ async fn save_changes(app_handle: AppHandle, steam_active_user_id: String, curre
let steam_logo_str: &str = steam_logo_str_val.as_str().expect("Should have been able to convert steamLogo pos into str.");
let logo_config_path: PathBuf = grids_directory.join(format!("{}.json", appid));

if steam_logo_str == "Remove" {
println!("logo config str: {}", steam_logo_str);
println!("Is remove {}", steam_logo_str == "REMOVE");
if steam_logo_str == "REMOVE" {
let remove_res = fs::remove_file(logo_config_path);
if remove_res.is_err() {
let err = remove_res.err().unwrap();
Expand Down

0 comments on commit 39c1d85

Please sign in to comment.