From d7ff978e3c76730ee4d184ace4d1b088133eb075 Mon Sep 17 00:00:00 2001 From: Dixie J Date: Wed, 2 Mar 2022 06:19:22 +0800 Subject: [PATCH] PATCH v3.0.4 (Temporarily Disabled sharing and profile change listener) --- ValorantCC/MainWindow.xaml.cs | 7 ++++--- ValorantCC/ValorantCC.csproj | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ValorantCC/MainWindow.xaml.cs b/ValorantCC/MainWindow.xaml.cs index 88f1589..d9b9880 100644 --- a/ValorantCC/MainWindow.xaml.cs +++ b/ValorantCC/MainWindow.xaml.cs @@ -52,6 +52,7 @@ private async void btnSave_Click(object sender, RoutedEventArgs e) Utilities.Utils.MessageText("You are not logged in!", Brushes.Red); return; } + Utilities.Utils.MessageText("Saving...", Brushes.Yellow); SelectedColors = new List { (Color)primary_color.SelectedColor, (Color)prim_outline_color.SelectedColor, (Color)ads_color.SelectedColor, (Color)ads_outline_color.SelectedColor, (Color)sniper_dot_color.SelectedColor }; if (await DataProcessor.SaveNewColor(SelectedColors, profiles.SelectedIndex, profiles.Text)) @@ -67,7 +68,7 @@ private async void btnSave_Click(object sender, RoutedEventArgs e) return; } - private async void profiles_SelectionChanged(object sender, SelectionChangedEventArgs e) + private void profiles_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (profiles.SelectedIndex == -1) return; @@ -81,7 +82,7 @@ private async void profiles_SelectionChanged(object sender, SelectionChangedEven ads_color.SelectedColor = Color.FromRgb(SelectedProfile.aDS.Color.R, SelectedProfile.aDS.Color.G, SelectedProfile.aDS.Color.B); ads_outline_color.SelectedColor = Color.FromRgb(SelectedProfile.aDS.OutlineColor.R, SelectedProfile.aDS.OutlineColor.G, SelectedProfile.aDS.OutlineColor.B); sniper_dot_color.SelectedColor = Color.FromRgb(SelectedProfile.Sniper.CenterDotColor.R, SelectedProfile.Sniper.CenterDotColor.G, SelectedProfile.Sniper.CenterDotColor.B); - if (!sharedProfileResp.HasValue) + /*if (!sharedProfileResp.HasValue) { if (ValCCAPI != null) sharedProfileResp = await ValCCAPI.ObtainSelfSaved(); } @@ -104,7 +105,7 @@ private async void profiles_SelectionChanged(object sender, SelectionChangedEven btnCopyShareCode.Visibility = Visibility.Collapsed; } } - } + }*/ Crosshair_load(); } private void StackPanel_MouseDown(object sender, MouseButtonEventArgs e) diff --git a/ValorantCC/ValorantCC.csproj b/ValorantCC/ValorantCC.csproj index cd90da5..abf230a 100644 --- a/ValorantCC/ValorantCC.csproj +++ b/ValorantCC/ValorantCC.csproj @@ -14,7 +14,7 @@ false - 3.0.3 + 3.0.4 false