File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -765,11 +765,14 @@ for (int nItem = -1;
765
765
if (pit == m_pDoc->m_PluginList .end ())
766
766
continue ;
767
767
768
+ bool bWasEnabled = p->m_bEnabled ;
769
+
768
770
m_pDoc->EnablePlugin (p->m_strID , TRUE );
769
771
bChanged = true ;
770
772
771
- m_pDoc->Note (TFormat (" Enabled plugin %s (%s)" ,
772
- (LPCTSTR) p->m_strName , (LPCTSTR) p->m_strID ));
773
+ if (!bWasEnabled)
774
+ m_pDoc->Note (TFormat (" Enabled plugin %s (%s)" ,
775
+ (LPCTSTR) p->m_strName , (LPCTSTR) p->m_strID ));
773
776
774
777
} // end of loop
775
778
@@ -797,11 +800,14 @@ for (int nItem = -1;
797
800
if (pit == m_pDoc->m_PluginList .end ())
798
801
continue ;
799
802
803
+ bool bWasEnabled = p->m_bEnabled ;
804
+
800
805
m_pDoc->EnablePlugin (p->m_strID , FALSE );
801
806
bChanged = true ;
802
807
803
- m_pDoc->Note (TFormat (" Disabled plugin %s (%s)" ,
804
- (LPCTSTR) p->m_strName , (LPCTSTR) p->m_strID ));
808
+ if (bWasEnabled)
809
+ m_pDoc->Note (TFormat (" Disabled plugin %s (%s)" ,
810
+ (LPCTSTR) p->m_strName , (LPCTSTR) p->m_strID ));
805
811
806
812
} // end of loop
807
813
You can’t perform that action at this time.
0 commit comments