From b8560710462fd212b9d2c7fdf21cb228d138d547 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Mon, 24 Jul 2023 14:42:17 +0200 Subject: fix: Get GameInstall object from store directly Instead of path and type like it was before the refactor in #445 --- src-vue/src/views/DeveloperView.vue | 7 +------ 1 file changed, 1 insertion(+), 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("calculate_checksums_gameinstall", { gameInstall: game_install }); + let checksum_calc_result = invoke("calculate_checksums_gameinstall", { gameInstall: this.$store.state.game_install }); await checksum_calc_result .then((message) => { // Send notification -- cgit v1.2.3