From 80c529acedc999355bc6c90a953dd02befadebbb Mon Sep 17 00:00:00 2001 From: Dustin Howett Date: Mon, 23 Jan 2023 19:01:07 -0600 Subject: [PATCH] Revert the removal of LayoutUpdated_revoker from ColorSchemes in ab79a8538 --- src/cascadia/TerminalSettingsEditor/ColorSchemes.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cascadia/TerminalSettingsEditor/ColorSchemes.h b/src/cascadia/TerminalSettingsEditor/ColorSchemes.h index e46bf19dfb8..63f755a6b26 100644 --- a/src/cascadia/TerminalSettingsEditor/ColorSchemes.h +++ b/src/cascadia/TerminalSettingsEditor/ColorSchemes.h @@ -13,6 +13,7 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation { struct ColorSchemes : public HasScrollViewer, ColorSchemesT { + public: ColorSchemes(); void OnNavigatedTo(const winrt::Windows::UI::Xaml::Navigation::NavigationEventArgs& e); @@ -25,6 +26,9 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation WINRT_OBSERVABLE_PROPERTY(Editor::ColorSchemesPageViewModel, ViewModel, _PropertyChangedHandlers, nullptr); WINRT_CALLBACK(PropertyChanged, Windows::UI::Xaml::Data::PropertyChangedEventHandler); + + private: + winrt::Windows::UI::Xaml::FrameworkElement::LayoutUpdated_revoker _layoutUpdatedRevoker; }; }