1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-02-09 21:57:37 +03:00

improve semantics

This commit is contained in:
Michail Vourlakos 2020-01-22 13:51:18 +02:00
parent b681836232
commit ad61f897af
2 changed files with 4 additions and 4 deletions

View File

@ -421,7 +421,7 @@ void LastActiveWindow::setWinId(QVariant winId)
if (!m_history.contains(winId)) {
m_history.prepend(winId);
clearHistory();
cleanHistory();
} else {
int p = m_history.indexOf(winId);
//! move to start
@ -512,7 +512,7 @@ void LastActiveWindow::windowChanged(const WindowId &wid)
}
m_history.removeAll(wid);
clearHistory();
cleanHistory();
}
if (m_history.count() > 0) {
@ -557,7 +557,7 @@ void LastActiveWindow::windowRemoved(const WindowId &wid)
}
}
void LastActiveWindow::clearHistory()
void LastActiveWindow::cleanHistory()
{
if (m_history.count() > MAXHISTORY) {
int size = m_history.count();

View File

@ -203,7 +203,7 @@ private:
void setWinId(QVariant winId);
void clearHistory();
void cleanHistory();
void updateColorScheme();
private: