Skip to content

Commit aab1e5b

Browse files
committed
Show json tree on lauch as well
1 parent 54b91cb commit aab1e5b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

NppJSONViewer/NppJsonViewer/NppJsonPlugin.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ void NppJsonPlugin::ProcessNotification(const SCNotification* notifyCode)
6868
m_bAboutToClose = true;
6969
}
7070

71+
case NPPN_READY:
72+
{
73+
// This is work arround where dialog does not show tree on launch
74+
if (m_pJsonViewDlg && m_pJsonViewDlg->isVisible())
75+
{
76+
::SendMessage(m_pJsonViewDlg->getHSelf(), WM_COMMAND, IDC_BTN_REFRESH, 0);
77+
}
78+
}
79+
7180
default:
7281
return;
7382
}

0 commit comments

Comments
 (0)