From 376d30942b5ffad71e522402257e1ddf89460519 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Tue, 13 Sep 2016 19:14:46 +0100 Subject: [PATCH] Fix bug where uploading would break the control bar buttons --- app/src/Tingapp.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/Tingapp.vue b/app/src/Tingapp.vue index a26ad98..bbff974 100644 --- a/app/src/Tingapp.vue +++ b/app/src/Tingapp.vue @@ -98,8 +98,9 @@ export default { } const inProgressPath = this.tingapp.saveInProgressVersion(); - this.process = tbtool.install(inProgressPath, device); - this.process.once('exit', this.processEnded); + const newProcess = tbtool.install(inProgressPath, device); + newProcess.once('exit', () => { this.processEnded(newProcess) }); + this.process = newProcess; }, fileClicked: function(file) { this.$broadcast('openFile', file);