Skip to content

Commit

Permalink
Fixed persistent notification for newer version
Browse files Browse the repository at this point in the history
  • Loading branch information
psychowood committed Jan 8, 2015
1 parent d5174b2 commit 5d527a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
3 changes: 2 additions & 1 deletion app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand All @@ -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() {
Expand Down

0 comments on commit 5d527a1

Please sign in to comment.