aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/main.rs
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-01-08 17:50:10 +0100
committerGitHub <noreply@github.com>2023-01-08 17:50:10 +0100
commit1df421ba963ae0d740c2915b2e038dfb2f6b8f95 (patch)
tree41268c995588b307916792b8dc7afe5fa1bbf916 /src-tauri/src/main.rs
parent1ae404dc90a4aa922652e3bedcdee9c3b0016593 (diff)
downloadFlightCore-1df421ba963ae0d740c2915b2e038dfb2f6b8f95.tar.gz
FlightCore-1df421ba963ae0d740c2915b2e038dfb2f6b8f95.zip
feat: Delete given Thunderstore mod (#111)
* feat: Expose installed NS mod directory This allows other functions to get a mod directory directly which is useful for e.g. deleting a mod. * feat: Add button to delete Northstar mod * refactor: Return vector of NorthstarMod instead of unnamed Tuples * feat: Delete given Thunderstore mod * refactor: replace information button by a dropdown menu with remove item * refactor: only display removal mod option if said mod is installed * feat: only display dropdown menu for installed mods * refactor: Remove leftover print statement * chore: Remove leftover todo comment * feat: Show confirm warning before deleting mod * refactor: Call func directly instead of proxy Removes the `func_caller` pattern * fix: Call reloading mods after attempted delete * feat: Hook up deleting mod backend function Now clicking "Remove Mod" calls the appropriate backend function that removes the corresponding mod. * refactor: Call func directly instead of proxy Removes the `func_caller` pattern * style: Autoformat * feat: Support removing outdated mods No longer include the version number in the comparison check * fix: Rephrase error message * feat: Show pop-up confirmation before deleting mod for Thunderstore mod in ThunderstoreView Co-authored-by: Alystrasz <contact@remyraes.com> Co-authored-by: Remy Raes <raes.remy@gmail.com>
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r--src-tauri/src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index a9483e95..96be489f 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -23,7 +23,8 @@ use repair_and_verify::{
mod mod_management;
use mod_management::{
- fc_download_mod_and_install, get_installed_mods_and_properties, set_mod_enabled_status, delete_northstar_mod,
+ delete_northstar_mod, delete_thunderstore_mod, fc_download_mod_and_install,
+ get_installed_mods_and_properties, set_mod_enabled_status,
};
mod northstar;
@@ -104,6 +105,7 @@ fn main() {
clean_up_download_folder_caller,
get_newest_flightcore_version,
delete_northstar_mod,
+ delete_thunderstore_mod,
])
.run(tauri::generate_context!())
.expect("error while running tauri application");