Commit 521be336 authored by SpinShare's avatar SpinShare

add refresh library after download complete

parent bc231476
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</template> </template>
<script> <script>
import { remote } from 'electron'; import { remote, ipcRenderer } from 'electron';
const { dialog, shell } = remote; const { dialog, shell } = remote;
import fs from 'fs'; import fs from 'fs';
...@@ -95,6 +95,9 @@ ...@@ -95,6 +95,9 @@
this.$on('install', () => { this.$on('install', () => {
this.install(); this.install();
}); });
ipcRenderer.on("download-complete", (event, downloadItem) => {
this.refreshLibrary();
});
}, },
methods: { methods: {
// TODO: Make this truly async // 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