fix LockScreenCommands.
MODIFY
WalletWasabi.Gui/Shell/Commands/LockScreenCommands.cs
WalletWasabi.Gui/Shell/Commands/LockScreenCommands.cs
@@ -8,12 +8,16 @@ namespace WalletWasabi.Gui.Shell.Commands
{
internal class LockScreenCommands
{
+ public Global Global { get; }
+
[ExportCommandDefinition("File.LockScreen")]
public CommandDefinition LockScreenCommand { get; }
[ImportingConstructor]
- public LockScreenCommands(CommandIconService commandIconService)
+ public LockScreenCommands(CommandIconService commandIconService, AvaloniaGlobalComponent global)
{
+ Global = global.Global;
+
var lockScreen = ReactiveCommand.Create(OnLockScreen);
lockScreen.ThrownExceptions.Subscribe(ex => Logging.Logger.LogWarning<LockScreenCommands>(ex));
@@ -26,7 +30,7 @@ namespace WalletWasabi.Gui.Shell.Commands
private void OnLockScreen()
{
-
+ Global.UiConfig.LockScreenActive = true;
}
}
}

fix LockScreenCommands.