diff --git a/src/CalcViewModel/Common/NavCategory.cpp b/src/CalcViewModel/Common/NavCategory.cpp index 829f7488..90307f7d 100644 --- a/src/CalcViewModel/Common/NavCategory.cpp +++ b/src/CalcViewModel/Common/NavCategory.cpp @@ -54,6 +54,12 @@ namespace // put the utils within this TU bool IsGraphingModeEnabled() { + static bool isGraphSupported = Windows::Foundation::Metadata::ApiInformation::IsMethodPresent("Windows.UI.Text.RichEditTextDocument", "GetMath"); + if (!isGraphSupported) + { + return false; + } + static bool isChecked = false; static bool isEnabled = false;