Skip to content

Commit

Permalink
Namecoin: rebrand history list
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Jan 24, 2019
1 parent 5b564a9 commit 4f425b5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions electrum_nmc/gui/qt/history_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
from .util import *

if TYPE_CHECKING:
from electrum.wallet import Abstract_Wallet
from electrum_nmc.wallet import Abstract_Wallet

try:
from electrum_nmc.plot import plot_history, NothingToPlotException
except:
print_error("qt/history_list: could not import electrum.plot. This feature needs matplotlib to be installed.")
print_error("qt/history_list: could not import electrum_nmc.plot. This feature needs matplotlib to be installed.")
plot_history = None

# note: this list needs to be kept in sync with another in kivy
Expand Down Expand Up @@ -471,13 +471,13 @@ def show_summary(self):
grid = QGridLayout()
grid.addWidget(QLabel(_("Start")), 0, 0)
grid.addWidget(QLabel(self.format_date(start_date)), 0, 1)
grid.addWidget(QLabel(str(h.get('start_fiat_value')) + '/BTC'), 0, 2)
grid.addWidget(QLabel(str(h.get('start_fiat_value')) + '/NMC'), 0, 2)
grid.addWidget(QLabel(_("Initial balance")), 1, 0)
grid.addWidget(QLabel(format_amount(h['start_balance'])), 1, 1)
grid.addWidget(QLabel(str(h.get('start_fiat_balance'))), 1, 2)
grid.addWidget(QLabel(_("End")), 2, 0)
grid.addWidget(QLabel(self.format_date(end_date)), 2, 1)
grid.addWidget(QLabel(str(h.get('end_fiat_value')) + '/BTC'), 2, 2)
grid.addWidget(QLabel(str(h.get('end_fiat_value')) + '/NMC'), 2, 2)
grid.addWidget(QLabel(_("Final balance")), 4, 0)
grid.addWidget(QLabel(format_amount(h['end_balance'])), 4, 1)
grid.addWidget(QLabel(str(h.get('end_fiat_balance'))), 4, 2)
Expand Down Expand Up @@ -618,7 +618,7 @@ def export_history_dialog(self):
d = WindowModalDialog(self, _('Export History'))
d.setMinimumSize(400, 200)
vbox = QVBoxLayout(d)
defaultname = os.path.expanduser('~/electrum-history.csv')
defaultname = os.path.expanduser('~/electrum-nmc-history.csv')
select_msg = _('Select file to export your wallet transactions to')
hbox, filename_e, csv_button = filename_field(self, self.config, defaultname, select_msg)
vbox.addLayout(hbox)
Expand All @@ -635,7 +635,7 @@ def export_history_dialog(self):
try:
self.do_export_history(filename, csv_button.isChecked())
except (IOError, os.error) as reason:
export_error_label = _("Electrum was unable to produce a transaction export.")
export_error_label = _("Electrum-NMC was unable to produce a transaction export.")
self.parent.show_critical(export_error_label + "\n" + str(reason), title=_("Unable to export history"))
return
self.parent.show_message(_("Your wallet history has been successfully exported."))
Expand Down

0 comments on commit 4f425b5

Please sign in to comment.