Commit 521be336 authored by SpinShare's avatar SpinShare

add refresh library after download complete

parent bc231476
......@@ -39,7 +39,7 @@
</template>
<script>
import { remote } from 'electron';
import { remote, ipcRenderer } from 'electron';
const { dialog, shell } = remote;
import fs from 'fs';
......@@ -95,6 +95,9 @@
this.$on('install', () => {
this.install();
});
ipcRenderer.on("download-complete", (event, downloadItem) => {
this.refreshLibrary();
});
},
methods: {
// TODO: Make this truly async
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment