diff --git a/src/CalcViewModel/ApplicationViewModel.cpp b/src/CalcViewModel/ApplicationViewModel.cpp index 67318fd..a3fa093 100644 --- a/src/CalcViewModel/ApplicationViewModel.cpp +++ b/src/CalcViewModel/ApplicationViewModel.cpp @@ -213,6 +213,7 @@ void ApplicationViewModel::ToggleAlwaysOnTop(float width, float height) HandleToggleAlwaysOnTop(width, height); } +#pragma optimize("", off) task ApplicationViewModel::HandleToggleAlwaysOnTop(float width, float height) { if (ApplicationView::GetForCurrentView()->ViewMode == ApplicationViewMode::CompactOverlay) @@ -257,7 +258,8 @@ task ApplicationViewModel::HandleToggleAlwaysOnTop(float width, float heig IsAlwaysOnTop = success; } SetDisplayNormalAlwaysOnTopOption(); -} +}; +#pragma optimize("", on) void ApplicationViewModel::SetDisplayNormalAlwaysOnTopOption() {