Skip to content

Commit c93db63

Browse files
committed
🚧 Misc
1 parent 3633915 commit c93db63

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

src/BD.WTTS.Client.Plugins.GameAccount/UI/ViewModels/GameAccountPageViewModel.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ public GameAccountPageViewModel()
4747

4848
public void AddPlatform(PlatformAccount platform)
4949
{
50-
TracepointHelper.TrackEvent("GameAccountAddPlatform", new Dictionary<string, string> {
51-
{ "Name", platform.Platform.ToString() },
52-
});
5350
GamePlatforms?.Add(platform);
5451
AddGamePlatforms?.Remove(platform);
5552
GameAccountSettings.EnablePlatforms.Add(platform.FullName);

src/BD.WTTS.Client.Plugins.GameAccount/UI/Views/Pages/GameAccountPage.axaml.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
using FluentAvalonia.UI.Controls;
44
using Avalonia.Controls;
55
using BD.WTTS.UI.Views.Controls;
6+
using System.Runtime.Devices;
7+
using BD.WTTS.Helpers;
68

79
namespace BD.WTTS.UI.Views.Pages;
810

@@ -47,6 +49,11 @@ private async void TabView_SelectedItemChanged(object sender, SelectionChangedEv
4749
if (item is PlatformAccount platform && !File.Exists(platform.ExePath))
4850
{
4951
var model = new PlatformSettingsPageViewModel(platform);
52+
53+
TracepointHelper.TrackEvent("GameAccountPlatformLoad", new Dictionary<string, string> {
54+
{ "Name", platform.Platform.ToString() },
55+
});
56+
5057
if (!await IWindowManager.Instance.ShowTaskDialogAsync(model, AppResources.Title_SetUp_.Format(platform.FullName),
5158
subHeader: AppResources.SubHeader_FirstNeedToSetPlatformPath_.Format(platform.FullName),
5259
pageContent: new PlatformSettingsPage(),

src/BD.WTTS.Client/Services/Mvvm/NoticeService.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
using BD.WTTS.Helpers;
2+
using System.Runtime.Devices;
13
using static BD.WTTS.Services.IMicroServiceClient;
24

35
// ReSharper disable once CheckNamespace
@@ -81,6 +83,7 @@ public void VerifyNotificationsHasRead()
8183

8284
public void MarkNotificationsHasRead()
8385
{
86+
TracepointHelper.TrackEvent("MarkNotificationsHasRead");
8487
GeneralSettings.LastLookNoticeDateTime.Value = DateTimeOffset.Now;
8588
VerifyNotificationsHasRead();
8689
}

0 commit comments

Comments
 (0)