mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-28 18:20:14 +01:00
[apps/probability] Avoid a local snapshot cast
This commit is contained in:
committed by
EmilieNumworks
parent
581ec55832
commit
e5f7b93efb
@@ -73,8 +73,7 @@ void Probability::LawController::viewWillAppear() {
|
||||
}
|
||||
|
||||
void Probability::LawController::didBecomeFirstResponder() {
|
||||
App::Snapshot * snapshot = (App::Snapshot *)app()->snapshot();
|
||||
snapshot->setActivePage(App::Snapshot::Page::Law);
|
||||
app()->snapshot()->setActivePage(App::Snapshot::Page::Law);
|
||||
if (selectedRow() == -1) {
|
||||
selectCellAtLocation(0, 0);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user