allow old mainwindowviewmodel to be initialised to keep status bar working.
MODIFY
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
@@ -38,6 +38,9 @@ namespace WalletWasabi.Fluent.ViewModels
public void Initialize()
{
+ /// Temporary to keep things running without VM modifications.
+ MainWindowViewModel.Instance = new MainWindowViewModel(_global.Network, _global.UiConfig, _global.WalletManager, null, null, false);
+
StatusBar.Initialize(_global.Nodes.ConnectedNodes);
if (Network != Network.Main)

MODIFY
WalletWasabi.Gui/ViewModels/MainWindowViewModel.cs
WalletWasabi.Gui/ViewModels/MainWindowViewModel.cs
@@ -28,7 +28,7 @@ namespace WalletWasabi.Gui.ViewModels
private Stack<LockScreenViewModelBase> _lockScreens;
private bool _menuVisible;
- public MainWindowViewModel(Network network, UiConfig uiConfig, WalletManager walletManager, StatusBarViewModel statusBarViewModel, IShell shell)
+ public MainWindowViewModel(Network network, UiConfig uiConfig, WalletManager walletManager, StatusBarViewModel statusBarViewModel, IShell shell, bool initWalletManager = true)
{
Network = network;
UiConfig = uiConfig;
@@ -44,8 +44,11 @@ namespace WalletWasabi.Gui.ViewModels
StatusBar = statusBarViewModel;
+ if (initWalletManager)
+ {
DisplayWalletManager();
}
+ }
public string Title
{

allow old mainwindowviewmodel to be initialised to keep status bar working.