Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
remove old LocalStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgunozerk committed May 5, 2022
1 parent cec4f2e commit fffb10b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "subspace-desktop",
"version": "0.4.5",
"version": "0.4.6",
"private": true,
"description": "Subspace desktop",
"author": "Subspace Labs <https://subspace.network>",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subspace-desktop"
version = "0.4.5"
version = "0.4.6"
description = "Subspace desktop"
authors = ["Subspace Labs <https://subspace.network>"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ q-layout(view="hHh lpr fFf")
q-toolbar-title
.row
.col-auto.q-mr-lg.relative-position
p {{ "0.4.5 "}}
p {{ "0.4.6 "}}
.col-auto.q-mr-md.relative-position
q-badge(color="grey" text-color="white")
.q-pa-xs(style="font-size: 14px") {{ lang.nonIncentivizedLabel }}
Expand Down
14 changes: 11 additions & 3 deletions src/pages/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,28 @@ import { defineComponent } from "vue"
import { globalState as global } from "src/lib/global"
import * as util from "src/lib/util"
import { appConfig } from "src/lib/appConfig"
import { Notify } from "quasar"
import { LocalStorage, Notify } from "quasar"
import disclaimer from "components/disclaimer.vue"
import { relaunch } from "@tauri-apps/api/process"
const lang = global.data.loc.text.index
export default defineComponent({
data() {
return { lang, client: global.client }
},
mounted() {
async mounted() {
try {
const config = appConfig.getAppConfig()
if (config) {
const { plottingStarted } = config
const { importedRewAddr, plottingStarted } = config
if (importedRewAddr === false || importedRewAddr === true) {
// means old artifact is there
await util.resetAndClear()
LocalStorage.clear()
await new Promise((resolve) => setTimeout(resolve, 1000))
await relaunch()
}
if (
plottingStarted
) {
Expand Down

0 comments on commit fffb10b

Please sign in to comment.