Idk, dev work goin on
This commit is contained in:
@@ -26,12 +26,16 @@ public sealed partial class SubsSettingsPage : Page
|
||||
{
|
||||
public SubsSettingsViewModel ViewModel { get; }
|
||||
|
||||
public SubsSettingsPage()
|
||||
public SubsSettingsPage() : this(App.Services.GetRequiredService<SubsSettingsViewModel>()) {}
|
||||
|
||||
public SubsSettingsPage(SubsSettingsViewModel viewModel)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
ViewModel = App.Services.GetRequiredService<SubsSettingsViewModel>();
|
||||
ViewModel = viewModel;
|
||||
DataContext = ViewModel;
|
||||
|
||||
ViewModel.ShowLoadingIndicator = true;
|
||||
ViewModel.LoadSubscriptionsAsync().ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user