775 | 775 |
with self.thumbpane_stop_updating_lock:
|
776 | 776 |
self.thumbpane_stop_updating[thread_id] = False
|
777 | 777 |
|
778 | |
if not self.thumbpane_update_lock.acquire():
|
779 | |
return
|
780 | |
|
781 | |
self.thumbpane_create_dir()
|
782 | |
# Check to see if any images need their thumbnails generated.
|
783 | |
curr_coord = 0
|
784 | |
imgnum = 0
|
785 | |
|
786 | |
for imgnum in range(start, end + 1):
|
787 | |
if (
|
788 | |
self.thumbpane_stop_updating.get(thread_id)
|
789 | |
or self.closing_app
|
790 | |
or self.stop_now
|
791 | |
or not self.thumbpane_show
|
792 | |
):
|
793 | |
break
|
794 | |
|
795 | |
if imgnum >= len(self.image_list):
|
796 | |
break
|
797 | |
|
798 | |
self.thumbpane_set_image(self.image_list[imgnum], imgnum)
|
799 | |
|
800 | |
if select_image == imgnum and select_image == self.curr_img_in_list:
|
801 | |
GLib.idle_add(self.thumbpane_select, select_image)
|
802 | |
|
803 | |
with self.thumbpane_stop_updating_lock:
|
804 | |
del self.thumbpane_stop_updating[thread_id]
|
805 | |
|
806 | |
self.thumbpane_update_lock.release()
|
|
778 |
with self.thumbpane_update_lock:
|
|
779 |
self.thumbpane_create_dir()
|
|
780 |
# Check to see if any images need their thumbnails generated.
|
|
781 |
curr_coord = 0
|
|
782 |
imgnum = 0
|
|
783 |
|
|
784 |
for imgnum in range(start, end + 1):
|
|
785 |
if (
|
|
786 |
self.thumbpane_stop_updating.get(thread_id)
|
|
787 |
or self.closing_app
|
|
788 |
or self.stop_now
|
|
789 |
or not self.thumbpane_show
|
|
790 |
):
|
|
791 |
break
|
|
792 |
|
|
793 |
if imgnum >= len(self.image_list):
|
|
794 |
break
|
|
795 |
|
|
796 |
self.thumbpane_set_image(self.image_list[imgnum], imgnum)
|
|
797 |
|
|
798 |
if select_image == imgnum and select_image == self.curr_img_in_list:
|
|
799 |
GLib.idle_add(self.thumbpane_select, select_image)
|
|
800 |
|
|
801 |
with self.thumbpane_stop_updating_lock:
|
|
802 |
del self.thumbpane_stop_updating[thread_id]
|
807 | 803 |
|
808 | 804 |
def thumbpane_clear_list(self):
|
809 | 805 |
self.thumbpane_bottom_coord_loaded = 0
|