mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/shared/values_controller] Simplify handleEvent
This commit is contained in:
@@ -100,23 +100,17 @@ bool ValuesController::handleEvent(Ion::Events::Event event) {
|
||||
selectableTableView()->reloadData();
|
||||
return true;
|
||||
}
|
||||
if (event == Ion::Events::OK || event == Ion::Events::EXE) {
|
||||
if (selectedRow() == -1) {
|
||||
return header()->handleEvent(event);
|
||||
}
|
||||
if (selectedRow() == 0) {
|
||||
if (selectedColumn() == 0) {
|
||||
configureAbscissa();
|
||||
return true;
|
||||
}
|
||||
configureFunction();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (selectedRow() == -1) {
|
||||
return header()->handleEvent(event);
|
||||
}
|
||||
if ((event == Ion::Events::OK || event == Ion::Events::EXE) && selectedRow() == 0) {
|
||||
if (selectedColumn() == 0) {
|
||||
configureAbscissa();
|
||||
return true;
|
||||
}
|
||||
configureFunction();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user