diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-01-04 23:42:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-04 23:42:05 +0100 |
commit | 4951a7e9048b6538a72294184639f6590f78384e (patch) | |
tree | 4490516fabc1c6097fcd23d9e5fa7f35f0966d0f /src-tauri/src/main.rs | |
parent | 4a63e92ea30fc65cf945b163d2757f17dd3c68cd (diff) | |
download | FlightCore-4951a7e9048b6538a72294184639f6590f78384e.tar.gz FlightCore-4951a7e9048b6538a72294184639f6590f78384e.zip |
feat: Add button to delete Northstar mod (#110)
* 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
* 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
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r-- | src-tauri/src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 0d7e69af..a9483e95 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -23,7 +23,7 @@ use repair_and_verify::{ mod mod_management; use mod_management::{ - fc_download_mod_and_install, get_installed_mods_and_properties, set_mod_enabled_status, + fc_download_mod_and_install, get_installed_mods_and_properties, set_mod_enabled_status, delete_northstar_mod, }; mod northstar; @@ -103,6 +103,7 @@ fn main() { install_mod_caller, clean_up_download_folder_caller, get_newest_flightcore_version, + delete_northstar_mod, ]) .run(tauri::generate_context!()) .expect("error while running tauri application"); |