mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[code] The user can clear the console history.
Change-Id: Ice8143f9c424764f6729feab0d73d39d91f896fd
This commit is contained in:
@@ -120,6 +120,11 @@ bool ConsoleController::handleEvent(Ion::Events::Event event) {
|
||||
}
|
||||
} else if (event == Ion::Events::Copy) {
|
||||
return copyCurrentLineToClipboard();
|
||||
} else if (event == Ion::Events::Clear) {
|
||||
m_consoleStore.clear();
|
||||
m_selectableTableView.reloadData();
|
||||
m_selectableTableView.selectCellAtLocation(0, m_consoleStore.numberOfLines());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user