mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
disabled autoscroll in playlist view
This commit is contained in:
parent
ad0f57dfd2
commit
485008d86e
@ -790,14 +790,12 @@ class TrackView(Gtk.Box):
|
||||
else:
|
||||
self.playlist_info.set_text("")
|
||||
|
||||
def refresh_selection(self):
|
||||
def refresh_selection(self): #Gtk.TreePath(len(self.store) is used to generate an invalid TreePath (needed to unset cursor)
|
||||
self.treeview.set_cursor(Gtk.TreePath(len(self.store)), None, False)
|
||||
try:
|
||||
song=self.client.status()["song"]
|
||||
path = Gtk.TreePath(int(song))
|
||||
if self.hovered_songpos:
|
||||
self.selection.select_path(path)
|
||||
else:
|
||||
self.treeview.set_cursor(path, None, False)
|
||||
self.selection.select_path(path)
|
||||
except:
|
||||
self.selection.unselect_all()
|
||||
self.refresh_cover()
|
||||
|
Loading…
Reference in New Issue
Block a user