Fix a typo; Make a function name & comment more accurate
parent
bfe27cc860
commit
6556b17ee2
|
@ -6,7 +6,7 @@ Notepad++ v8.6.9 bug-fixes & new enhancements:
|
|||
4. Fix the regression where the Find dialog size is not remembered across sessions.
|
||||
5. Fix the regression of content lost by using Encoding "Convert to..." commands.
|
||||
6. Fix the regression of exception/crash on Windows Server Core 2022.
|
||||
7. Prevent DirectWrite from being enabled under Windows Sever.
|
||||
7. Prevent DirectWrite from being enabled under Windows Server.
|
||||
8. Enhance the quality of Fluent toolbar icon sets for different DPI settings.
|
||||
9. Improve the look & feel of tabbar close button in dark mode.
|
||||
10. Improve the dark mode tab bar icon in the search results panel.
|
||||
|
|
|
@ -6323,7 +6323,7 @@ void Notepad_plus::getCurrentOpenedFiles(Session & session, bool includUntitledD
|
|||
sessionFileInfo sfi(buf->getFullPathName(), langName, buf->getEncoding(), buf->getUserReadOnly(), buf->getPosition(editView), buf->getBackupFileName().c_str(), buf->getLastModifiedTimestamp(), buf->getMapPosition());
|
||||
|
||||
sfi._isMonitoring = buf->isMonitoringOn();
|
||||
sfi._individualTabColour = docTab[k]->getIndividualTabColour(static_cast<int>(i));
|
||||
sfi._individualTabColour = docTab[k]->getIndividualTabColourId(static_cast<int>(i));
|
||||
sfi._isRTL = buf->isRTL();
|
||||
|
||||
_invisibleEditView.execute(SCI_SETDOCPOINTER, 0, buf->getDocument());
|
||||
|
|
|
@ -2693,7 +2693,7 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
|
|||
_isAttemptingCloseOnQuit = false;
|
||||
|
||||
if (nppgui._rememberLastSession)
|
||||
_lastRecentFileList.setLock(false); //only lock when the session is remembered
|
||||
_lastRecentFileList.setLock(false); //only unlock when the session is remembered
|
||||
|
||||
if (!saveProjectPanelsParams()) allClosed = false; //writeProjectPanelsSettings
|
||||
saveFileBrowserParam();
|
||||
|
@ -3122,7 +3122,7 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
|
|||
|
||||
if ((tabIndex >= 0) && (tabIndex < static_cast<int>(pDt->nbItem())))
|
||||
{
|
||||
colorId = pDt->getIndividualTabColour(tabIndex);
|
||||
colorId = pDt->getIndividualTabColourId(tabIndex);
|
||||
}
|
||||
|
||||
return colorId;
|
||||
|
|
|
@ -96,7 +96,7 @@ void DocTabView::setIndividualTabColour(BufferID bufferId, int colorId)
|
|||
bufferId->setDocColorId(colorId);
|
||||
}
|
||||
|
||||
int DocTabView::getIndividualTabColour(int tabIndex)
|
||||
int DocTabView::getIndividualTabColourId(int tabIndex)
|
||||
{
|
||||
BufferID bufferId = getBufferByIndex(tabIndex);
|
||||
return bufferId->getDocColorId();
|
||||
|
|
|
@ -92,7 +92,7 @@ public :
|
|||
};
|
||||
|
||||
void setIndividualTabColour(BufferID bufferId, int colorId);
|
||||
int getIndividualTabColour(int tabIndex) override;
|
||||
int getIndividualTabColourId(int tabIndex) override;
|
||||
|
||||
HIMAGELIST getImgLst(UINT index) {
|
||||
if (index >= _pIconListVector.size())
|
||||
|
|
|
@ -1250,7 +1250,7 @@ void TabBarPlus::drawItem(DRAWITEMSTRUCT *pDrawItemStruct, bool isDarkMode)
|
|||
}
|
||||
}
|
||||
|
||||
const int individualColourId = getIndividualTabColour(nTab);
|
||||
const int individualColourId = getIndividualTabColourId(nTab);
|
||||
|
||||
// draw highlights on tabs (top bar for active tab / darkened background for inactive tab)
|
||||
RECT barRect = rect;
|
||||
|
|
|
@ -223,7 +223,7 @@ public :
|
|||
}
|
||||
|
||||
static void setColour(COLORREF colour2Set, tabColourIndex i, TabBarPlus* tbpObj);
|
||||
virtual int getIndividualTabColour(int tabIndex) = 0;
|
||||
virtual int getIndividualTabColourId(int tabIndex) = 0;
|
||||
|
||||
void currentTabToStart();
|
||||
void currentTabToEnd();
|
||||
|
|
Loading…
Reference in New Issue