mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Replace profile-from-workshop-dialog with a page
This commit is contained in:
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));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user