From cf574cb482f1e2701a3c448491dff8747e1aa2f3 Mon Sep 17 00:00:00 2001 From: marasolen Date: Tue, 24 Oct 2023 12:39:05 -0700 Subject: [PATCH] adding unwanted modes by commenting them out --- src/CalcViewModel/Common/NavCategory.cpp | 5 +++-- src/Calculator/Views/MainPage.xaml.cs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/CalcViewModel/Common/NavCategory.cpp b/src/CalcViewModel/Common/NavCategory.cpp index 829f7488..02baa0b2 100644 --- a/src/CalcViewModel/Common/NavCategory.cpp +++ b/src/CalcViewModel/Common/NavCategory.cpp @@ -100,7 +100,8 @@ namespace // put the utils within this TU MyVirtualKey::Number2, L"2", SUPPORTS_ALL }, - NavCategoryInitializer{ ViewMode::Graphing, + /* + NavCategoryInitializer{ ViewMode::Graphing, GRAPHING_ID, L"Graphing", L"GraphingCalculatorMode", @@ -243,7 +244,7 @@ namespace // put the utils within this TU CategoryGroupType::Converter, MyVirtualKey::None, std::nullopt, - SUPPORTS_NEGATIVE }, + SUPPORTS_NEGATIVE },*/ }; } // namespace unnamed diff --git a/src/Calculator/Views/MainPage.xaml.cs b/src/Calculator/Views/MainPage.xaml.cs index bd4a56c4..717f8f70 100644 --- a/src/Calculator/Views/MainPage.xaml.cs +++ b/src/Calculator/Views/MainPage.xaml.cs @@ -162,7 +162,7 @@ namespace CalculatorApp return false; } }); - graphCategory.IsEnabled = NavCategoryStates.IsViewModeEnabled(ViewMode.Graphing); + //graphCategory.IsEnabled = NavCategoryStates.IsViewModeEnabled(ViewMode.Graphing); }); }