refresh network info instantly when switching to network tab
This commit is contained in:
@@ -215,7 +215,12 @@ public:
|
|||||||
void refreshMarketData();
|
void refreshMarketData();
|
||||||
|
|
||||||
// UI navigation
|
// UI navigation
|
||||||
void setCurrentPage(ui::NavPage page) { current_page_ = page; }
|
void setCurrentPage(ui::NavPage page) {
|
||||||
|
if (page != current_page_) {
|
||||||
|
current_page_ = page;
|
||||||
|
if (page == ui::NavPage::Peers) refreshPeerInfo();
|
||||||
|
}
|
||||||
|
}
|
||||||
ui::NavPage getCurrentPage() const { return current_page_; }
|
ui::NavPage getCurrentPage() const { return current_page_; }
|
||||||
|
|
||||||
// Dialog triggers (used by settings page to open modal dialogs)
|
// Dialog triggers (used by settings page to open modal dialogs)
|
||||||
|
|||||||
Reference in New Issue
Block a user