From cce41c59129d717b065580f176a0b3b8f3414ee4 Mon Sep 17 00:00:00 2001 From: Inso <insomniak.fr@gmail.com> Date: Sat, 28 Mar 2015 11:52:37 +0100 Subject: [PATCH] Saving account cache before reloading it --- src/cutecoin/gui/mainwindow.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cutecoin/gui/mainwindow.py b/src/cutecoin/gui/mainwindow.py index 3e8abf41..33e35230 100644 --- a/src/cutecoin/gui/mainwindow.py +++ b/src/cutecoin/gui/mainwindow.py @@ -169,6 +169,10 @@ class MainWindow(QMainWindow, Ui_MainWindow): logging.debug("Busybar : {:} : {:}".format(value, maximum)) self.busybar.setValue(value) self.busybar.setMaximum(maximum) + + if self.app.current_account: + self.app.save_cache(self.app.current_account) + self.app.current_account = None self.refresh() QApplication.setOverrideCursor(Qt.BusyCursor) -- GitLab