Return network back.
MODIFY
WalletWasabi.Gui/Program.cs
WalletWasabi.Gui/Program.cs
@@ -100,7 +100,7 @@ namespace WalletWasabi.Gui
try
{
SetTheme();
- var statusBarViewModel = new StatusBarViewModel(Global.DataDir, Global.Config, Global.HostedServices, Global.BitcoinStore.SmartHeaderChain, Global.Synchronizer, Global.LegalDocuments);
+ var statusBarViewModel = new StatusBarViewModel(Global.DataDir, Global.Network, Global.Config, Global.HostedServices, Global.BitcoinStore.SmartHeaderChain, Global.Synchronizer, Global.LegalDocuments);
MainWindowViewModel.Instance = new MainWindowViewModel(Global.Network, Global.UiConfig, Global.WalletManager, statusBarViewModel, IoC.Get<IShell>());
await Global.InitializeNoWalletAsync();

MODIFY
WalletWasabi.Gui/ViewModels/StatusBarViewModel.cs
WalletWasabi.Gui/ViewModels/StatusBarViewModel.cs
@@ -9,6 +9,7 @@ using Splat;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
+using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
using System.Net.Http;
@@ -56,9 +57,10 @@ namespace WalletWasabi.Gui.ViewModels
private volatile bool _disposedValue = false; // To detect redundant calls
- public StatusBarViewModel(string dataDir, Config config, HostedServices hostedServices, SmartHeaderChain smartHeaderChain, WasabiSynchronizer synchronizer, LegalDocuments? legalDocuments)
+ public StatusBarViewModel(string dataDir, Network network, Config config, HostedServices hostedServices, SmartHeaderChain smartHeaderChain, WasabiSynchronizer synchronizer, LegalDocuments? legalDocuments)
{
DataDir = dataDir;
+ Network = network;
Config = config;
HostedServices = hostedServices;
SmartHeaderChain = smartHeaderChain;
@@ -84,6 +86,9 @@ namespace WalletWasabi.Gui.ViewModels
public string DataDir { get; }
+ [SuppressMessage("CodeQuality", "IDE0052:Remove unread private members", Justification = "Network affects status bar background color.")]
+ private Network Network { get; }
+
private Config Config { get; }
private HostedServices HostedServices { get; }

Return network back.