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

Search nodes on manual refresh

parent 3126e2a0
No related branches found
No related tags found
No related merge requests found
...@@ -334,6 +334,9 @@ class Node(QObject): ...@@ -334,6 +334,9 @@ class Node(QObject):
if not self._ws_tasks['peer']: if not self._ws_tasks['peer']:
self._ws_tasks['peer'] = asyncio.ensure_future(self.connect_peers()) self._ws_tasks['peer'] = asyncio.ensure_future(self.connect_peers())
if manual:
asyncio.ensure_future(self.request_peers())
if self._refresh_counter % 20 == 0 or manual: if self._refresh_counter % 20 == 0 or manual:
self.refresh_informations() self.refresh_informations()
self.refresh_uid() self.refresh_uid()
......
...@@ -89,7 +89,7 @@ class NetworkFilterProxyModel(QSortFilterProxyModel): ...@@ -89,7 +89,7 @@ class NetworkFilterProxyModel(QSortFilterProxyModel):
if index.column() == source_model.columns_types.index('current_hash') : if index.column() == source_model.columns_types.index('current_hash') :
return source_data[:10] return source_data[:10]
if index.column() == source_model.columns_types.index('current_time'): if index.column() == source_model.columns_types.index('current_time') and source_data:
return QLocale.toString( return QLocale.toString(
QLocale(), QLocale(),
QDateTime.fromTime_t(source_data), QDateTime.fromTime_t(source_data),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment