Exemplo n.º 1
0
Arquivo: ui.py Projeto: zyhong/calibre
 def handle_changes_from_server_debounced(self):
     if self.shutting_down:
         return
     changes = []
     while True:
         try:
             library_path, change_event = self.server_changes.get_nowait()
         except Empty:
             break
         if self.library_broker.is_gui_library(library_path):
             changes.append(change_event)
     if changes:
         handle_changes(changes, self)
Exemplo n.º 2
0
 def handle_changes_from_server_debounced(self):
     if self.shutting_down:
         return
     changes = []
     while True:
         try:
             library_path, change_event = self.server_changes.get_nowait()
         except Empty:
             break
         if self.library_broker.is_gui_library(library_path):
             changes.append(change_event)
     if changes:
         handle_changes(changes, self)