tAdd theme name to config file. - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit ef9a3abe31578ad401a99d760aa7c4e50f3f1748 DIR parent 7f81bcf05f4d688e048759f8fc93c4dacb509b06 HTML Author: Amir Taaki <genjix@riseup.net> Date: Sat, 18 Aug 2012 07:15:48 +0100 Add theme name to config file. Diffstat: M lib/wallet.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -282,6 +282,7 @@ class Wallet: self.num_zeros = 0 self.master_public_key = '' self.conversion_currency = None + self.theme = None # saved fields self.use_encryption = False t@@ -665,7 +666,8 @@ class Wallet: 'expert_mode': self.expert_mode, 'gap_limit': self.gap_limit, 'debug_server': self.debug_server, - 'conversion_currency': self.conversion_currency + 'conversion_currency': self.conversion_currency, + 'theme': self.theme } f = open(self.path,"w") f.write( repr(s) ) t@@ -710,6 +712,7 @@ class Wallet: self.gap_limit = d.get('gap_limit', 5) self.debug_server = d.get('debug_server', False) self.conversion_currency = d.get('conversion_currency', 'USD') + self.theme = d.get('theme', 'Cleanlook') except: raise BaseException("cannot read wallet file")