aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2023-07-24 14:42:17 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2023-07-24 14:42:17 +0200
commitb8560710462fd212b9d2c7fdf21cb228d138d547 (patch)
tree1ae89fb6f5b95a00bc7d48c8bfe98d4c2370308b
parent5042bb767d73f9eaacf50de02a9ca3bbbe649c12 (diff)
downloadFlightCore-feat/calculate-checksums-install-folder.tar.gz
FlightCore-feat/calculate-checksums-install-folder.zip
fix: Get GameInstall object from store directlyfeat/calculate-checksums-install-folder
Instead of path and type like it was before the refactor in #445
-rw-r--r--src-vue/src/views/DeveloperView.vue7
1 files changed, 1 insertions, 6 deletions
diff --git a/src-vue/src/views/DeveloperView.vue b/src-vue/src/views/DeveloperView.vue
index af49c2be..b7ce8218 100644
--- a/src-vue/src/views/DeveloperView.vue
+++ b/src-vue/src/views/DeveloperView.vue
@@ -342,11 +342,6 @@ export default defineComponent({
.catch((error) => { showNotification(`Error`, error, "error"); })
},
async computeChecksumsGameInstallFolder() {
- let game_install = {
- game_path: this.$store.state.game_path,
- install_type: this.$store.state.install_type
- } as GameInstall;
-
// Send notification telling the user to wait for the process to finish
const notification = showNotification(
"Calculating checksums",
@@ -355,7 +350,7 @@ export default defineComponent({
0
);
- let checksum_calc_result = invoke<string>("calculate_checksums_gameinstall", { gameInstall: game_install });
+ let checksum_calc_result = invoke<string>("calculate_checksums_gameinstall", { gameInstall: this.$store.state.game_install });
await checksum_calc_result
.then((message) => {
// Send notification