Remove txbroadcaster from Tools (for now)
MODIFY
WalletWasabi.Gui/Shell/Commands/ToolCommands.cs
WalletWasabi.Gui/Shell/Commands/ToolCommands.cs
@@ -20,17 +20,6 @@ namespace WalletWasabi.Gui.Shell.Commands
{
var walletManagerCommand = ReactiveCommand.Create(OnWalletManager);
- var transactionBroadcasterCommand = ReactiveCommand.Create(() =>
- {
- var txbc = IoC.Get<IShell>().Documents.OfType<TransactionBroadcasterViewModel>().FirstOrDefault();
- if (txbc is null)
- {
- txbc = new TransactionBroadcasterViewModel(null);
- IoC.Get<IShell>().AddDocument(txbc);
- }
- IoC.Get<IShell>().Select(txbc);
- });
-
var settingsCommand = ReactiveCommand.Create(() =>
{
IoC.Get<IShell>().AddOrSelectDocument(() => new SettingsViewModel());
@@ -38,7 +27,6 @@ namespace WalletWasabi.Gui.Shell.Commands
Observable
.Merge(walletManagerCommand.ThrownExceptions)
- .Merge(transactionBroadcasterCommand.ThrownExceptions)
.Merge(settingsCommand.ThrownExceptions)
.Subscribe(OnFileOpenException);
@@ -47,11 +35,6 @@ namespace WalletWasabi.Gui.Shell.Commands
commandIconService.GetCompletionKindImage("WalletManager"),
walletManagerCommand);
- TransactionBroadcasterCommand = new CommandDefinition(
- "Transaction Broadcaster",
- commandIconService.GetCompletionKindImage("TransactionBroadcaster"),
- transactionBroadcasterCommand);
-
SettingsCommand = new CommandDefinition(
"Settings",
commandIconService.GetCompletionKindImage("Settings"),
@@ -79,9 +62,6 @@ namespace WalletWasabi.Gui.Shell.Commands
[ExportCommandDefinition("Tools.WalletManager")]
public CommandDefinition WalletManagerCommand { get; }
- [ExportCommandDefinition("Tools.TransactionBroadcaster")]
- public CommandDefinition TransactionBroadcasterCommand { get; }
-
[ExportCommandDefinition("Tools.Settings")]
public CommandDefinition SettingsCommand { get; }
}

Remove txbroadcaster from Tools (for now)