mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
removed unneeded counter
This commit is contained in:
parent
a79690a340
commit
9744d9810e
@ -1220,8 +1220,7 @@ class AlbumIconView(Gtk.IconView):
|
|||||||
albums=sorted(albums, key=lambda k: k['album'])
|
albums=sorted(albums, key=lambda k: k['album'])
|
||||||
music_lib=self.settings.get_value("paths")[self.settings.get_int("active-profile")]
|
music_lib=self.settings.get_value("paths")[self.settings.get_int("active-profile")]
|
||||||
size=self.settings.get_int("album-cover")
|
size=self.settings.get_int("album-cover")
|
||||||
z=0
|
for i, album in enumerate(albums):
|
||||||
for album in albums:
|
|
||||||
if not self.stop_flag:
|
if not self.stop_flag:
|
||||||
cover=Cover(lib_path=music_lib, song_file=album["songs"][0]["file"])
|
cover=Cover(lib_path=music_lib, song_file=album["songs"][0]["file"])
|
||||||
#tooltip
|
#tooltip
|
||||||
@ -1238,10 +1237,9 @@ class AlbumIconView(Gtk.IconView):
|
|||||||
GLib.idle_add(self.add_row, [None, album["album"], tooltip, album["album"], album["year"], album["artist"]], cover, size)
|
GLib.idle_add(self.add_row, [None, album["album"], tooltip, album["album"], album["year"], album["artist"]], cover, size)
|
||||||
else:
|
else:
|
||||||
GLib.idle_add(self.add_row, [None, album["album"]+" ("+album["year"]+")", tooltip, album["album"], album["year"], album["artist"]], cover, size)
|
GLib.idle_add(self.add_row, [None, album["album"]+" ("+album["year"]+")", tooltip, album["album"], album["year"], album["artist"]], cover, size)
|
||||||
if z%16 == 0:
|
if i%16 == 0:
|
||||||
while Gtk.events_pending():
|
while Gtk.events_pending():
|
||||||
Gtk.main_iteration_do(True)
|
Gtk.main_iteration_do(True)
|
||||||
z=z+1
|
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
GLib.idle_add(self.emit, "done")
|
GLib.idle_add(self.emit, "done")
|
||||||
|
Loading…
Reference in New Issue
Block a user