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:
parent
b681836232
commit
ad61f897af
@ -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();
|
||||
|
@ -203,7 +203,7 @@ private:
|
||||
|
||||
void setWinId(QVariant winId);
|
||||
|
||||
void clearHistory();
|
||||
void cleanHistory();
|
||||
void updateColorScheme();
|
||||
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user