tfix: recently_open - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 743d2721db9dce9c35c8a93b80a8e87e198a47a1
DIR parent 464a89ddf530d3c748812b4122198d537fa06ba7
HTML Author: ThomasV <thomasv@gitorious>
Date: Fri, 7 Aug 2015 19:28:05 +0200
fix: recently_open
Diffstat:
M gui/qt/main_window.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
t@@ -375,7 +375,9 @@ class ElectrumWindow(QMainWindow):
def update_recently_visited(self, filename=None):
recent = self.config.get('recently_open', [])
- if filename and filename not in recent:
+ if filename:
+ if filename in recent:
+ recent.remove(filename)
recent.insert(0, filename)
recent = recent[:5]
self.config.set_key('recently_open', recent)