Replace profile-from-workshop-dialog with a page

This commit is contained in:
Robert committed 2025-12-10 23:06:14 +01:00
1 parent 638dbd11eb
commit 108cbaae3d
14 files changed
+213 -44

No files matched your search

@@ -0,0 +1,19 @@
using System;
using System.Reactive.Disposables;
using Artemis.UI.Shared.Routing;
using Avalonia.ReactiveUI;
using Avalonia.Threading;
using ReactiveUI;
namespace Artemis.UI.Screens.ProfileEditor;
public partial class ProfileView : ReactiveUserControl<ProfileViewModel>
{
public ProfileView()
{
InitializeComponent();
this.WhenActivated(d => ViewModel.WhenAnyValue(vm => vm.Screen)
.WhereNotNull()
.Subscribe(screen => RouterFrame.NavigateFromObject(screen))
.DisposeWith(d));
}
}