diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2022-11-23 09:36:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-23 09:36:27 +0100 |
commit | 62a5f5c821961c6f7fcc5354c207c6e09895bcb4 (patch) | |
tree | c1b29b16dfb77c898cfb3c964fe64bbfc2176c1b /src-vue/src/views/DeveloperView.vue | |
parent | c49af0ce6d95d0529ddb06908c3f65867bae89ca (diff) | |
download | FlightCore-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.vue | 9 |
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(); } } }); |