ui: Increased history dropdown list size to 50

This commit is contained in:
Eberhard Graether
2018-01-13 13:37:18 +01:00
parent 3f60f7a83c
commit 2ac430bbe5
3 changed files with 17 additions and 18 deletions
@@ -535,7 +535,8 @@ MessageBase* UndoRedoController::lastMessage() const
void UndoRedoController::updateHistory()
{
const size_t historySize = 20;
const size_t historySize = 50;
const size_t historyMenuSize = 20;
std::vector<SearchMatch> matches;
bool firstActiveMessage = false;
@@ -574,7 +575,7 @@ void UndoRedoController::updateHistory()
}
}
m_history.push_front(match);
if (m_history.size() > historySize)
if (m_history.size() > historyMenuSize)
{
m_history.pop_back();
}