Skip to content

Commit a516e03

Browse files
committed
Minor: Show json tree on lauch as well
1 parent aab1e5b commit a516e03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NppJSONViewer/NppJsonViewer/NppJsonPlugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void NppJsonPlugin::ProcessNotification(const SCNotification* notifyCode)
7171
case NPPN_READY:
7272
{
7373
// This is work arround where dialog does not show tree on launch
74-
if (m_pJsonViewDlg && m_pJsonViewDlg->isVisible())
74+
if (m_pJsonViewDlg && m_pJsonViewDlg->isVisible() && !m_bAboutToClose)
7575
{
7676
::SendMessage(m_pJsonViewDlg->getHSelf(), WM_COMMAND, IDC_BTN_REFRESH, 0);
7777
}

0 commit comments

Comments
 (0)