From 5d527a1a5db0486252e7bc82516933d4ec69b1af Mon Sep 17 00:00:00 2001 From: psychowood Date: Thu, 8 Jan 2015 01:48:15 +0100 Subject: [PATCH] Fixed persistent notification for newer version --- README.md | 3 ++- app/scripts/app.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 01cc5cc..230b323 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,8 @@ There are parts not translated yet, and I'll need help because I don't speak nor ### v0.3.1 - [x] Added: Server version in header - [x] Fixed: Language not recognized before first set -- [x] Support for multi-value strings (caused problems with russian language) +- [x] Support for multi-value strings (caused problems with russian language) [thanks *lukas-by*] +- [x] Fixed: notification for newer version after update ### v0.3.0 - [x] Added: Inherited translations from uTorrent resource files. Jump to 47 supported languages :) (Various strings missing, I'll need help from the community to complete the translations). diff --git a/app/scripts/app.js b/app/scripts/app.js index 935220c..51be327 100644 --- a/app/scripts/app.js +++ b/app/scripts/app.js @@ -120,7 +120,7 @@ $http.get('bower.json').then(function(res) { var currentVersion = 'v' + res.data.version; - $scope.currentVersion = currentVersion; + $cookies.currentVersion = currentVersion; if (latest !== currentVersion) { if ($cookies.updatedVersion !== latest) { $scope.alerts.push({ type: 'info', msg: 'New version available: ' + latest }); @@ -139,6 +139,7 @@ } else { $log.info('Version already checked in the last hour'); } + $scope.currentVersion = $cookies.currentVersion; $scope.updatedVersion = $cookies.updatedVersion; uTorrentService.init().then(function() {