Skip to content

Commit

Permalink
Remove unused component; Stop NodeCG before changing the installation…
Browse files Browse the repository at this point in the history
… folder
  • Loading branch information
inkfarer committed Apr 7, 2024
1 parent 867c4fa commit e94f01b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 42 deletions.
40 changes: 0 additions & 40 deletions src/components/InstallDirectoryConfig.vue

This file was deleted.

9 changes: 7 additions & 2 deletions src/components/NodecgStatus.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>
<ipl-label>Current install folder</ipl-label>
<div>{{ configStore.userConfig.nodecgInstallDir ?? 'N/A' }}</div>
<div class="text-overflow-anywhere">
{{ configStore.userConfig.nodecgInstallDir ?? 'N/A' }}
</div>
<status-row
:color="statusColor"
class="m-t-6"
Expand Down Expand Up @@ -33,7 +35,7 @@

<script setup lang="ts">
import { computed } from 'vue'
import { InstallStatus, useNodecgStore } from '@/store/nodecgStore'
import { InstallStatus, RunStatus, useNodecgStore } from '@/store/nodecgStore'
import { useConfigStore } from '@/store/configStore'
import StatusRow from '@/components/StatusRow.vue'
import { IplButton, IplLabel } from '@iplsplatoon/vue-components'
Expand Down Expand Up @@ -73,6 +75,9 @@ async function openInstallFolderInTerminal() {
}

async function unsetInstallDir() {
if (nodecgStore.status.runStatus === RunStatus.RUNNING) {
await invoke('stop_nodecg')
}
await configStore.patch({
nodecgInstallDir: null
})
Expand Down

0 comments on commit e94f01b

Please sign in to comment.