aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/views/DeveloperView.vue
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2022-11-23 09:36:27 +0100
committerGitHub <noreply@github.com>2022-11-23 09:36:27 +0100
commit62a5f5c821961c6f7fcc5354c207c6e09895bcb4 (patch)
treec1b29b16dfb77c898cfb3c964fe64bbfc2176c1b /src-vue/src/views/DeveloperView.vue
parentc49af0ce6d95d0529ddb06908c3f65867bae89ca (diff)
downloadFlightCore-62a5f5c821961c6f7fcc5354c207c6e09895bcb4.tar.gz
FlightCore-62a5f5c821961c6f7fcc5354c207c6e09895bcb4.zip
feat: Store game path in persistent store (#61)
* feat: Store gameinstall in persistent store This includes both path and type (Steam/Origin/EA/UNKNOWN) * feat: Add method to clear persistent store * fix: Only check for NS version if installed Otherwise we incorrectly set the button to `Install`. * fix: Remove leftover `console.log()`
Diffstat (limited to 'src-vue/src/views/DeveloperView.vue')
-rw-r--r--src-vue/src/views/DeveloperView.vue9
1 files changed, 9 insertions, 0 deletions
diff --git a/src-vue/src/views/DeveloperView.vue b/src-vue/src/views/DeveloperView.vue
index 2fa5d89e..780dc2ea 100644
--- a/src-vue/src/views/DeveloperView.vue
+++ b/src-vue/src/views/DeveloperView.vue
@@ -45,6 +45,9 @@
Force delete temp download folder
</el-button>
+ <el-button type="primary" @click="clearFlightCorePersistentStore">
+ Delete FlightCore persistent store
+ </el-button>
</div>
</template>
@@ -214,6 +217,12 @@ export default defineComponent({
position: 'bottom-right'
});
});
+ },
+ async clearFlightCorePersistentStore() {
+ // Clear store...
+ await persistentStore.clear();
+ // ...and save
+ await persistentStore.save();
}
}
});