mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-27 01:29:58 +01:00
[apps/calculation] Handle clearing all history
Change-Id: Ib18a0a25b9124d1ca9749d428404e0f1577c6b16
This commit is contained in:
@@ -104,6 +104,13 @@ bool HistoryController::handleEvent(Ion::Events::Event event) {
|
||||
m_selectableTableView.scrollToCell(0, m_selectableTableView.selectedRow());
|
||||
return true;
|
||||
}
|
||||
case Ion::Events::Event::CLEAR:
|
||||
{
|
||||
m_calculationStore->deleteAll();
|
||||
reload();
|
||||
app()->setFirstResponder(parentResponder());
|
||||
return true;
|
||||
}
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user