about summary refs log tree commit homepage
path: root/lib/dtas/tracklist.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-09-09 07:43:24 +0000
committerEric Wong <normalperson@yhbt.net>2013-09-09 07:43:24 +0000
commit137e36e346a4641850183684ab136fe781af121a (patch)
tree83a90222af83170991ef6860b0f20e345dbf0112 /lib/dtas/tracklist.rb
parente71bbefa44135f6e84912cd9ab824397dfb72286 (diff)
downloaddtas-137e36e346a4641850183684ab136fe781af121a.tar.gz
We should return to the starting position of the tracklist if we
are idle.
Diffstat (limited to 'lib/dtas/tracklist.rb')
-rw-r--r--lib/dtas/tracklist.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/dtas/tracklist.rb b/lib/dtas/tracklist.rb
index 01339cc..a51db32 100644
--- a/lib/dtas/tracklist.rb
+++ b/lib/dtas/tracklist.rb
@@ -35,6 +35,11 @@ class DTAS::Tracklist
     @goto_pos = nil
   end
 
+  def reset
+    @goto_pos = nil
+    @pos = TL_DEFAULTS["pos"]
+  end
+
   def size
     @list.size
   end