From 6c78193dae7f6b02267bf5d10a3aaf26c83f8559 Mon Sep 17 00:00:00 2001 From: yell0wsuit <5692900+yell0wsuit@users.noreply.github.com> Date: Sun, 7 Apr 2024 07:33:27 +0700 Subject: [PATCH] Change comments to XML docs --- src/Ryujinx/App.axaml.cs | 4 +++- src/Ryujinx/UI/Windows/MainWindow.axaml.cs | 12 +++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/Ryujinx/App.axaml.cs b/src/Ryujinx/App.axaml.cs index 339e39eca5..57adde8b48 100644 --- a/src/Ryujinx/App.axaml.cs +++ b/src/Ryujinx/App.axaml.cs @@ -116,7 +116,9 @@ namespace Ryujinx.Ava } } - // Convert PlatformThemeVariant to the expected ThemeVariant type + /// + /// Converts a PlatformThemeVariant value to the corresponding ThemeVariant value. + /// private ThemeVariant ConvertThemeVariant(PlatformThemeVariant platformThemeVariant) => platformThemeVariant switch { diff --git a/src/Ryujinx/UI/Windows/MainWindow.axaml.cs b/src/Ryujinx/UI/Windows/MainWindow.axaml.cs index 90d8cda9f8..bff11a9e52 100644 --- a/src/Ryujinx/UI/Windows/MainWindow.axaml.cs +++ b/src/Ryujinx/UI/Windows/MainWindow.axaml.cs @@ -88,7 +88,9 @@ namespace Ryujinx.Ava.UI.Windows } } - // Event handler for detecting OS theme change when using "Follow OS theme" option + /// + /// Event handler for detecting OS theme change when using "Follow OS theme" option + /// private void OnPlatformColorValuesChanged(object sender, PlatformColorValues e) { if (Application.Current is App app) @@ -102,7 +104,9 @@ namespace Ryujinx.Ava.UI.Windows base.OnClosed(e); if (PlatformSettings != null) { - // Unsubscribe to the ColorValuesChanged event + /// + /// Unsubscribe to the ColorValuesChanged event + /// PlatformSettings.ColorValuesChanged -= OnPlatformColorValuesChanged; } } @@ -390,7 +394,9 @@ namespace Ryujinx.Ava.UI.Windows Initialize(); - // Subscribe to the ColorValuesChanged event + /// + /// Subscribe to the ColorValuesChanged event + /// PlatformSettings.ColorValuesChanged += OnPlatformColorValuesChanged; ViewModel.Initialize(