Skip to content

Commit

Permalink
🚧 Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
rmbadmin committed Nov 25, 2024
1 parent 3633915 commit c93db63
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ public GameAccountPageViewModel()

public void AddPlatform(PlatformAccount platform)
{
TracepointHelper.TrackEvent("GameAccountAddPlatform", new Dictionary<string, string> {
{ "Name", platform.Platform.ToString() },
});
GamePlatforms?.Add(platform);
AddGamePlatforms?.Remove(platform);
GameAccountSettings.EnablePlatforms.Add(platform.FullName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
using FluentAvalonia.UI.Controls;
using Avalonia.Controls;
using BD.WTTS.UI.Views.Controls;
using System.Runtime.Devices;
using BD.WTTS.Helpers;

namespace BD.WTTS.UI.Views.Pages;

Expand Down Expand Up @@ -47,6 +49,11 @@ private async void TabView_SelectedItemChanged(object sender, SelectionChangedEv
if (item is PlatformAccount platform && !File.Exists(platform.ExePath))
{
var model = new PlatformSettingsPageViewModel(platform);

TracepointHelper.TrackEvent("GameAccountPlatformLoad", new Dictionary<string, string> {
{ "Name", platform.Platform.ToString() },
});

if (!await IWindowManager.Instance.ShowTaskDialogAsync(model, AppResources.Title_SetUp_.Format(platform.FullName),
subHeader: AppResources.SubHeader_FirstNeedToSetPlatformPath_.Format(platform.FullName),
pageContent: new PlatformSettingsPage(),
Expand Down
3 changes: 3 additions & 0 deletions src/BD.WTTS.Client/Services/Mvvm/NoticeService.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using BD.WTTS.Helpers;
using System.Runtime.Devices;
using static BD.WTTS.Services.IMicroServiceClient;

// ReSharper disable once CheckNamespace
Expand Down Expand Up @@ -81,6 +83,7 @@ public void VerifyNotificationsHasRead()

public void MarkNotificationsHasRead()
{
TracepointHelper.TrackEvent("MarkNotificationsHasRead");
GeneralSettings.LastLookNoticeDateTime.Value = DateTimeOffset.Now;
VerifyNotificationsHasRead();
}
Expand Down

0 comments on commit c93db63

Please sign in to comment.