Fixed bug

pull/48/head
Thomas Horn Sivertsen 2018-03-15 14:01:49 +01:00
parent eb1e7c15d2
commit 4246857bf7
1 changed files with 2 additions and 1 deletions

View File

@ -306,7 +306,8 @@
self.upgraded[id] = result;
// Update progress message
self.throbber.setProgress(Math.round((info.total - self.left + self.current) / (info.total / 100)) + ' %');
var percentComplete = Math.round((info.total - self.left + self.current) / (info.total / 100));
self.throbber.setProgress(percentComplete + ' %');
self.trigger('upgraded', {
id: id,