add restart button
MODIFY
WalletWasabi.Fluent/ViewModels/Settings/SettingsPageViewModel.cs
WalletWasabi.Fluent/ViewModels/Settings/SettingsPageViewModel.cs
using System.Reactive.Disposables;
+using System.Windows.Input;
+using ReactiveUI;
+using WalletWasabi.Fluent.Helpers;
using WalletWasabi.Fluent.Models;
using WalletWasabi.Fluent.ViewModels.NavBar;
using WalletWasabi.Gui;
@@ -25,8 +28,12 @@ namespace WalletWasabi.Fluent.ViewModels.Settings
PrivacySettingsTab = new PrivacySettingsTabViewModel();
NetworkSettingsTab = new NetworkSettingsTabViewModel();
BitcoinTabSettings = new BitcoinTabSettingsViewModel();
+
+ RestartCommand = ReactiveCommand.Create(AppLifetimeHelper.Restart);
}
+ public ICommand RestartCommand { get; }
+
public GeneralSettingsTabViewModel GeneralSettingsTab { get; }
public PrivacySettingsTabViewModel PrivacySettingsTab { get; }
public NetworkSettingsTabViewModel NetworkSettingsTab { get; }

MODIFY
WalletWasabi.Fluent/Views/Settings/SettingsPageView.axaml
WalletWasabi.Fluent/Views/Settings/SettingsPageView.axaml
</Style>
</UserControl.Styles>
<DockPanel LastChildFill="True">
- <c:InfoMessage Content="Changes will be applied after restarting the application."
- Foreground="{StaticResource WarningMessageForeground}"
+ <c:InfoMessage Foreground="{StaticResource WarningMessageForeground}"
Margin="0,16"
HorizontalAlignment="Center"
Opacity="{Binding IsModified, Converter={x:Static conv:BoolOpacityConverters.BoolToOpacity}}"
- DockPanel.Dock="Bottom" />
+ DockPanel.Dock="Bottom">
+ <WrapPanel>
+ <TextBlock Text="Changes will be applied after restarting the application." />
+ <Button Content="Restart Wasabi" Classes="activeHyperLink plain" Margin="5 0 0 0" Command="{Binding RestartCommand}"/>
+ </WrapPanel>
+ </c:InfoMessage>
<c:ContentArea Title="{Binding Title}"
Caption="Manage appearance, privacy and other settings"

add restart button