Codebase list mirage / 81c9c18
Remove waits for pending events from image opening functions It seems to not be required and causes issues when opening files from the command line. Thomas Ross 3 years ago
1 changed file(s) with 0 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
59465946 if os.path.isdir(item):
59475947 self.searching_for_images = True
59485948 self.update_statusbar()
5949 if not self.closing_app:
5950 while Gtk.events_pending():
5951 Gtk.main_iteration()
59525949 first_image = ""
59535950 first_image_found = False
59545951 first_image_loaded = False
60786075 second_image = self.image_list[itemnum]
60796076 self.set_go_navigation_sensitivities(True)
60806077 go_buttons_enabled = True
6081 while Gtk.events_pending():
6082 Gtk.main_iteration()
60836078 if not first_image_found:
60846079 first_image_found = True
60856080 first_image = self.image_list[itemnum]
61106105 )
61116106 self.image_loaded = True
61126107 first_image_loaded_successfully = True
6113 if not self.closing_app:
6114 while Gtk.events_pending():
6115 Gtk.main_iteration()
61166108 except:
61176109 print(traceback.format_exc(), file=sys.stderr)
61186110 if first_image_came_from_dir:
61466138 self.do_image_list_stuff(first_image, second_image)
61476139 self.add_folderlist_images(folderlist, go_buttons_enabled)
61486140 self.update_title()
6149 if not self.closing_app:
6150 while Gtk.events_pending():
6151 Gtk.main_iteration()
61526141 if not first_image_loaded_successfully:
61536142 self.image_load_failed(False, init_image)
61546143 self.searching_for_images = False
61956184 return False
61966185 for item2 in os.listdir(item):
61976186 if not self.closing_app and not self.stop_now:
6198 while Gtk.events_pending():
6199 Gtk.main_iteration()
62006187 item2 = item + os.sep + item2
62016188 item_fullpath2 = os.path.abspath(item2)
62026189 if (