diff options
author | nfnty <git@nfnty.se> | 2015-11-10 00:59:15 +0100 |
---|---|---|
committer | nfnty <git@nfnty.se> | 2016-02-08 04:43:04 +0100 |
commit | f24d97cc4dad56dd409bd1798b1c26d9a986ee63 (patch) | |
tree | 2925ddbc0f458bf2c246f35d8bf66fa5dd28b53a | |
parent | 5b14517afec332127610a087f0717f7f96b96b37 (diff) | |
download | ranger-f24d97cc4dad56dd409bd1798b1c26d9a986ee63.tar.gz |
VCS: Delay a minimum of 1 second
-rw-r--r-- | ranger/ext/vcs/vcs.py | 2 | ||||
-rw-r--r-- | ranger/gui/ui.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ranger/ext/vcs/vcs.py b/ranger/ext/vcs/vcs.py index 2ea2773e..241038e0 100644 --- a/ranger/ext/vcs/vcs.py +++ b/ranger/ext/vcs/vcs.py @@ -354,7 +354,7 @@ class VcsThread(threading.Thread): super(VcsThread, self).__init__() self.daemon = True self.ui = ui - self.delay = idle_delay / 1000 + self.delay = idle_delay self.wake = threading.Event() def _check(self): diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py index 49c99777..c3f68586 100644 --- a/ranger/gui/ui.py +++ b/ranger/gui/ui.py @@ -253,7 +253,7 @@ class UI(DisplayableContainer): self.add_child(self.pager) # Create VCS thread - self.vcsthread = VcsThread(self, self.settings.idle_delay) + self.vcsthread = VcsThread(self, max(1, self.settings.idle_delay / 1000)) self.vcsthread.start() def redraw(self): |