Commit ce43ef89 authored by Kai Willadsen's avatar Kai Willadsen

vcview: Delay refresh until outside of the scheduler task (bgo#753952)

parent 10c3e63e
......@@ -19,6 +19,7 @@
from __future__ import print_function
import atexit
import functools
import logging
import tempfile
import shutil
......@@ -589,7 +590,8 @@ class VcView(melddoc.MeldDoc, gnomeglade.Component):
self.console_vbox.show()
if refresh:
self.refresh_partial(working_dir)
refresh = functools.partial(self.refresh_partial, working_dir)
GLib.idle_add(refresh)
def has_command(self, command):
vc_command = self.command_map.get(command)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment