File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,13 @@ void NavMenuWidget::onShowHideColdStakingChanged(bool show) {
164164 ui->scrollAreaNav ->verticalScrollBar ()->setValue (ui->btnColdStaking ->y ());
165165}
166166
167+ void NavMenuWidget::showEvent (QShowEvent *event) {
168+ if (!init) {
169+ init = true ;
170+ ui->scrollAreaNav ->verticalScrollBar ()->setValue (ui->btnDashboard ->y ());
171+ }
172+ }
173+
167174void NavMenuWidget::updateButtonStyles (){
168175 forceUpdateStyle ({
169176 ui->btnDashboard ,
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ class NavMenuWidget : public PWidget
2323 ~NavMenuWidget ();
2424
2525 void loadWalletModel () override ;
26+ virtual void showEvent (QShowEvent *event) override ;
2627
2728public slots:
2829 void selectSettings ();
@@ -44,6 +45,8 @@ private slots:
4445
4546 void connectActions ();
4647 void onNavSelected (QWidget* active, bool startup = false );
48+
49+ bool init = false ;
4750};
4851
4952#endif // NAVMENUWIDGET_H
You can’t perform that action at this time.
0 commit comments