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

Commit

Permalink
added support for external drives (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgunozerk authored Jun 16, 2022
1 parent 30d0b75 commit b3d08a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/SetupPlot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export default defineComponent({
},
async updateDriveStats() {
const stats = await native.driveStats(this.plotDirectory)
console.log("Drive Stats:", stats)
util.infoLogger("Drive Stats -> free: " + stats.freeBytes + "; total: " + stats.totalBytes)
this.driveStats = stats
},
async selectDir() {
Expand All @@ -285,6 +285,7 @@ export default defineComponent({
util.errorLogger(error)
})
if (result) this.plotDirectory = result
await this.updateDriveStats()
},
async checkIdentity() {
const config = await appConfig.read()
Expand Down

0 comments on commit b3d08a0

Please sign in to comment.