From 8d44f491cdcce9a10cbd23ba2eab583fe2785e36 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Sun, 16 Apr 2023 20:55:53 +0200 Subject: fix: Fix incorrect is_empty check (#270) Fixes a regression introduced in #244 that prevented any Thunderstore mods from being uninstalled Closes #269 --- src-tauri/src/mod_management/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/mod_management/mod.rs b/src-tauri/src/mod_management/mod.rs index 7261619e..76e258d1 100644 --- a/src-tauri/src/mod_management/mod.rs +++ b/src-tauri/src/mod_management/mod.rs @@ -480,7 +480,7 @@ pub fn delete_thunderstore_mod( } } - if !mod_folders_to_remove.is_empty() { + if mod_folders_to_remove.is_empty() { return Err(format!( "No mods removed as no Northstar mods matching {thunderstore_mod_string} were found to be installed." )); -- cgit v1.2.3