[clean] Remove relaunch codes

This commit is contained in:
AkiraFukushima 2021-03-26 23:13:14 +09:00
parent da4a8bc37c
commit 09ccca909a
4 changed files with 0 additions and 27 deletions

View File

@ -229,13 +229,6 @@
},
"language": {
"title": "Language",
"notice": "These settings will take effect after a relaunch",
"confirm": {
"title": "Confirm",
"message": "You have to restart this application. Continue?",
"ok": "Restart Now",
"cancel": "Cancel"
},
"language": {
"title": "Language",
"description": "Choose the language you would like to use with Whalebird."

View File

@ -7,7 +7,6 @@
<el-select id="language" v-model="displayLanguage" placeholder="style">
<el-option v-for="lang in languages" :key="lang.key" :label="lang.name" :value="lang.key"> </el-option>
</el-select>
<p class="notice">{{ $t('preferences.language.notice') }}</p>
</el-form-item>
</el-form>
<el-form class="spellchecker section" label-position="top" size="small">
@ -94,19 +93,6 @@ export default {
},
created() {
this.$store.dispatch('Preferences/Language/loadLanguage')
},
methods: {
confirm() {
this.$confirm(this.$t('preferences.language.confirm.message'), this.$t('preferences.language.confirm.title'), {
confirmButtonText: this.$t('preferences.language.confirm.ok'),
cancelButtonText: this.$t('preferences.language.confirm.cancel'),
type: 'warning'
})
.then(() => {
this.$store.dispatch('Preferences/Language/relaunch')
})
.catch(() => {})
}
}
}
</script>

View File

@ -96,9 +96,6 @@ const actions: ActionTree<GeneralState, RootState> = {
commit(MUTATION_TYPES.UPDATE_GENERAL, conf.general as General)
dispatch('App/loadPreferences', null, { root: true })
await win.ipcRenderer.invoke('change-auto-launch', newOther.launch)
},
relaunch: () => {
win.ipcRenderer.send('relaunch')
}
}

View File

@ -63,9 +63,6 @@ const actions: ActionTree<LanguageState, RootState> = {
const langs: Array<string> = await win.ipcRenderer.invoke('update-spellchecker-languages', languages)
commit(MUTATION_TYPES.UPDATE_SPELLCHECKER_LANGUAGES, langs)
return langs
},
relaunch: () => {
win.ipcRenderer.send('relaunch')
}
}