Exemple #1
0
    def work(self):
        ProcessCache.refresh()

        if ProcessCache.empty():
            self.status_message("There are no running tasks")
        else:
            self.append_processes_to_output_view()
            ProcessCache.kill_all()
            self.append_to_output_view("\nAll running tasks killed!\n")
Exemple #2
0
    def work(self):
        ProcessCache.refresh()

        if ProcessCache.empty():
            self.status_message("There are no running tasks")
        else:
            self.procs = ProcessCache.get()
            quick_panel_list = [[process.last_command, process.working_dir, 'PID: %d' % process.pid] for process in self.procs]
            self.show_quick_panel(quick_panel_list, self.kill_process, font=0)
Exemple #3
0
    def work(self):
        ProcessCache.refresh()

        if ProcessCache.empty():
            self.status_message("There are no running tasks")
        else:
            self.append_processes_to_output_view()
            ProcessCache.kill_all()
            self.append_to_output_view("\nAll running tasks killed!\n")
Exemple #4
0
    def work(self):
        ProcessCache.refresh()

        if ProcessCache.empty():
            self.status_message("There are no running tasks")
        else:
            self.procs = ProcessCache.get()
            quick_panel_list = [[
                process.last_command, process.working_dir,
                'PID: %d' % process.pid
            ] for process in self.procs]
            self.show_quick_panel(quick_panel_list, self.kill_process, font=0)
Exemple #5
0
    def update(self):
        if ProcessCache.empty():
            return self.erase()

        status_bar_tasks = self.settings.get('status_bar_tasks', False)

        if status_bar_tasks:
            task_names = set([process.get_task_name() for process in ProcessCache.get()])

            if status_bar_tasks != True:
                if not isinstance(status_bar_tasks, list):
                    status_bar_tasks = [status_bar_tasks]

                task_names = task_names.intersection(set(status_bar_tasks))

            if task_names:
                defer_sync(lambda: self.set(', '.join(task_names)))