mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-23 06:25:19 -07:00
Revert "Reset Calculator Type in Calculator ViewModel when mode change to not Calculator mode"
This reverts commit a0d2f84513
.
This commit is contained in:
parent
a0d2f84513
commit
746a199f5d
2 changed files with 0 additions and 14 deletions
|
@ -125,14 +125,6 @@ bool ApplicationViewModel::TryRecoverFromNavigationModeFailure()
|
|||
void ApplicationViewModel::OnModeChanged()
|
||||
{
|
||||
assert(NavCategory::IsValidViewMode(m_mode));
|
||||
if (NavCategory::IsValidViewMode(m_PreviousMode) && NavCategory::IsCalculatorViewMode(m_PreviousMode) && !NavCategory::IsCalculatorViewMode(m_mode))
|
||||
{
|
||||
if (m_CalculatorViewModel)
|
||||
{
|
||||
m_CalculatorViewModel->SetCalculatorType(m_mode);
|
||||
}
|
||||
}
|
||||
|
||||
if (NavCategory::IsCalculatorViewMode(m_mode))
|
||||
{
|
||||
if (!m_CalculatorViewModel)
|
||||
|
|
|
@ -1205,12 +1205,6 @@ void StandardCalculatorViewModel::SetCalculatorType(ViewMode targetState)
|
|||
ResetDisplay();
|
||||
SetPrecision(ProgrammerModePrecision);
|
||||
break;
|
||||
|
||||
default:
|
||||
IsStandard = false;
|
||||
IsScientific = false;
|
||||
IsProgrammer = false;
|
||||
ResetDisplay();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue