fix #2430
This commit is contained in:
@@ -2221,15 +2221,14 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
|
|||||||
def plot_history_dialog(self):
|
def plot_history_dialog(self):
|
||||||
try:
|
try:
|
||||||
from electrum.plot import plot_history
|
from electrum.plot import plot_history
|
||||||
except ImportError as e:
|
wallet = self.wallet
|
||||||
|
history = wallet.get_history()
|
||||||
|
if len(history) > 0:
|
||||||
|
plt = plot_history(self.wallet, history)
|
||||||
|
plt.show()
|
||||||
|
except BaseException as e:
|
||||||
self.show_error(str(e))
|
self.show_error(str(e))
|
||||||
return
|
return
|
||||||
wallet = self.wallet
|
|
||||||
history = wallet.get_history()
|
|
||||||
if len(history) > 0:
|
|
||||||
plt = plot_history(self.wallet, history)
|
|
||||||
plt.show()
|
|
||||||
|
|
||||||
|
|
||||||
def do_export_history(self, wallet, fileName, is_csv):
|
def do_export_history(self, wallet, fileName, is_csv):
|
||||||
history = wallet.get_history()
|
history = wallet.get_history()
|
||||||
|
|||||||
Reference in New Issue
Block a user