Beispiel #1
0
def init_update_task(parent, runtask, model):
    """Update the model in the background

    git-cola should startup as quickly as possible.

    """
    def update_status():
        model.update_status(update_index=True)

    task = qtutils.SimpleTask(parent, update_status)
    runtask.start(task)
Beispiel #2
0
 def init_config_actions(self):
     """Do the expensive "get_config_actions()" call in the background"""
     task = qtutils.SimpleTask(self, self.get_config_actions)
     self.runtask.start(task)