mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[code] Fixed selection bug in the console history.
When clearing the console history, the previously selected cell was not unhighlighted. This sometimes caused a random cell to be highlighted when adding new commands. Change-Id: I393446527fc06d7ae075c21124cb78e09d63ef99
This commit is contained in:
@@ -124,6 +124,7 @@ bool ConsoleController::handleEvent(Ion::Events::Event event) {
|
||||
} else if (event == Ion::Events::Copy) {
|
||||
return copyCurrentLineToClipboard();
|
||||
} else if (event == Ion::Events::Clear) {
|
||||
m_selectableTableView.deselectTable();
|
||||
m_consoleStore.clear();
|
||||
m_selectableTableView.reloadData();
|
||||
m_selectableTableView.selectCellAtLocation(0, m_consoleStore.numberOfLines());
|
||||
|
||||
Reference in New Issue
Block a user