format and reordering
MODIFY
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
using System.Linq;
using System.Reactive.Concurrency;
using System.Reactive.Linq;
-using Avalonia;
using Avalonia.Controls;
using NBitcoin;
using ReactiveUI;
@@ -133,8 +132,7 @@ public partial class MainViewModel : ViewModelBase
public void InvalidateIsCoinJoinActive()
{
- IsCoinJoinActive = UiServices.WalletManager.Wallets.OfType<WalletViewModel>()
- .Any(x => x.IsCoinJoining);
+ IsCoinJoinActive = UiServices.WalletManager.Wallets.OfType<WalletViewModel>().Any(x => x.IsCoinJoining);
}
public void Initialize()
@@ -153,24 +151,18 @@ public partial class MainViewModel : ViewModelBase
AddWalletPageViewModel.Register(_addWalletPage);
SettingsPageViewModel.Register(_settingsPage);
- GeneralSettingsTabViewModel.RegisterLazy(
- () =>
+ GeneralSettingsTabViewModel.RegisterLazy(() =>
{
_settingsPage.SelectedTab = 0;
return _settingsPage;
});
- BitcoinTabSettingsViewModel.RegisterLazy(
- () =>
+ BitcoinTabSettingsViewModel.RegisterLazy(() =>
{
_settingsPage.SelectedTab = 2;
return _settingsPage;
});
- AboutViewModel.RegisterLazy(() => new AboutViewModel());
-
- BroadcasterViewModel.RegisterLazy(() => new BroadcasterViewModel());
-
RxApp.MainThreadScheduler.Schedule(async () =>
{
try
@@ -192,6 +184,8 @@ public partial class MainViewModel : ViewModelBase
}
});
+ AboutViewModel.RegisterLazy(() => new AboutViewModel());
+ BroadcasterViewModel.RegisterLazy(() => new BroadcasterViewModel());
UserSupportViewModel.RegisterLazy(() => new UserSupportViewModel());
BugReportLinkViewModel.RegisterLazy(() => new BugReportLinkViewModel());
DocsLinkViewModel.RegisterLazy(() => new DocsLinkViewModel());

format and reordering