diff options
| author | Andrej Mihajlov <and@codeispoetry.ru> | 2017-03-16 20:42:40 +0000 |
|---|---|---|
| committer | Andrej Mihajlov <and@codeispoetry.ru> | 2017-03-16 20:42:40 +0000 |
| commit | 0fca9f68baba1ef13cfa76b8316bf93f37d6f741 (patch) | |
| tree | 7ad426417dacfe6c2f1e3e71369396808e3141c9 | |
| parent | 70c2c54bc09243e16923c9fb68dbb8532ee5e63e (diff) | |
| download | mullvadvpn-0fca9f68baba1ef13cfa76b8316bf93f37d6f741.tar.xz mullvadvpn-0fca9f68baba1ef13cfa76b8316bf93f37d6f741.zip | |
Add methods to manage current displayed frame in animator
| -rw-r--r-- | app/lib/tray-animator.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/lib/tray-animator.js b/app/lib/tray-animator.js index 44e0ada3a7..c4c00628c5 100644 --- a/app/lib/tray-animator.js +++ b/app/lib/tray-animator.js @@ -208,6 +208,16 @@ export class TrayAnimator { this._started = false; this._timer = null; } + + advanceToStart() { + this._animation.advanceToStart(); + this._updateTrayIcon(); + } + + advanceToEnd() { + this._animation.advanceToEnd(); + this._updateTrayIcon(); + } /** * Start animating |
