Skip to content
Snippets Groups Projects
Commit d0bfe589 authored by inso's avatar inso
Browse files

Fixed bugs with expert mode disabled

parent f322a2c4
Branches
Tags
No related merge requests found
......@@ -76,7 +76,6 @@ class HomeScreenWidget(QWidget, Ui_HomescreenWidget):
"""
if event.type() == QEvent.LanguageChange:
self.retranslateUi(self)
self.refresh_text()
return super(HomeScreenWidget, self).changeEvent(event)
......@@ -137,12 +137,7 @@ class TransactionsTabWidget(QWidget, Ui_transactionsTabWidget):
else:
amount = self.app.current_account.amount(self.community)
maximum = self.community.monetary_mass
# if referential type is quantitative...
# display int values
localized_amount = self.app.current_account.current_ref(amount, self.community, self.app).localized(units=True)
localized_minimum = self.app.current_account.current_ref(0, self.community, self.app).localized(units=True)
localized_maximum = self.app.current_account.current_ref(maximum, self.community, self.app).localized(units=True)
# set infos in label
self.label_balance.setText(
......@@ -151,13 +146,6 @@ class TransactionsTabWidget(QWidget, Ui_transactionsTabWidget):
localized_amount
)
)
self.label_balance_range.setText(
self.tr("in [{:} ; {:}]")
.format(
localized_minimum,
localized_maximum
)
)
def history_context_menu(self, point):
index = self.table_history.indexAt(point)
......
......@@ -214,7 +214,10 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
"""
Refresh graph scene to current metadata
"""
if self._current_identity != None:
self.draw_graph(self._current_identity)
else:
self.reset()
@pyqtSlot(str)
def handle_identity_change(self, request):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment