mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-19 12:59:30 -07:00
simplify some code
This commit is contained in:
parent
39be08c0db
commit
aa05247b08
1 changed files with 1 additions and 8 deletions
|
@ -502,13 +502,6 @@ bool NavCategoryStates::IsValidViewMode(ViewMode mode)
|
||||||
|
|
||||||
bool NavCategoryStates::IsViewModeEnabled(ViewMode mode)
|
bool NavCategoryStates::IsViewModeEnabled(ViewMode mode)
|
||||||
{
|
{
|
||||||
if (mode != ViewMode::Graphing)
|
return mode != ViewMode::Graphing ? true : IsGraphingModeEnabled();
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return IsGraphingModeEnabled();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue