mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[shared] Remove angleUnitVersion
The angleUnitVersion check is no longer needed, as changing the angle unit with a trigonometric function set would leave the cursor hanging. Change-Id: I17d99c05daeacfec953865158cdfe7706635cd32
This commit is contained in:
committed by
EmilieNumworks
parent
5e679b7bc8
commit
56e03aae0c
@@ -11,9 +11,8 @@ using namespace Poincare;
|
||||
|
||||
namespace Shared {
|
||||
|
||||
FunctionGraphController::FunctionGraphController(Responder * parentResponder, InputEventHandlerDelegate * inputEventHandlerDelegate, ButtonRowController * header, InteractiveCurveViewRange * interactiveRange, CurveView * curveView, CurveViewCursor * cursor, int * indexFunctionSelectedByCursor, uint32_t * rangeVersion, Preferences::AngleUnit * angleUnitVersion) :
|
||||
FunctionGraphController::FunctionGraphController(Responder * parentResponder, InputEventHandlerDelegate * inputEventHandlerDelegate, ButtonRowController * header, InteractiveCurveViewRange * interactiveRange, CurveView * curveView, CurveViewCursor * cursor, int * indexFunctionSelectedByCursor, uint32_t * rangeVersion) :
|
||||
InteractiveCurveViewController(parentResponder, inputEventHandlerDelegate, header, interactiveRange, curveView, cursor, rangeVersion),
|
||||
m_angleUnitVersion(angleUnitVersion),
|
||||
m_indexFunctionSelectedByCursor(indexFunctionSelectedByCursor)
|
||||
{
|
||||
}
|
||||
@@ -42,11 +41,7 @@ void FunctionGraphController::viewWillAppear() {
|
||||
if (functionGraphView()->context() == nullptr) {
|
||||
functionGraphView()->setContext(textFieldDelegateApp()->localContext());
|
||||
}
|
||||
Preferences::AngleUnit newAngleUnitVersion = Preferences::sharedPreferences()->angleUnit();
|
||||
if (*m_angleUnitVersion != newAngleUnitVersion) {
|
||||
*m_angleUnitVersion = newAngleUnitVersion;
|
||||
initCursorParameters();
|
||||
}
|
||||
|
||||
InteractiveCurveViewController::viewWillAppear();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user