Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using Avalonia; | ||
using AvalonStudio.Commands; | ||
using ReactiveUI; | ||
using System; | ||
using System.Composition; | ||
|
||
namespace WalletWasabi.Gui.Shell.Commands | ||
{ | ||
internal class LockScreenCommands | ||
{ | ||
[ExportCommandDefinition("File.LockScreen")] | ||
public CommandDefinition LockScreenCommand { get; } | ||
|
||
[ImportingConstructor] | ||
public LockScreenCommands(CommandIconService commandIconService) | ||
{ | ||
var lockScreen = ReactiveCommand.Create(OnLockScreen); | ||
|
||
lockScreen.ThrownExceptions.Subscribe(ex => Logging.Logger.LogWarning<ExitCommands>(ex)); | ||
|
||
LockScreenCommand = new CommandDefinition( | ||
"Lock Screen", | ||
commandIconService.GetCompletionKindImage("Lock"), | ||
lockScreen); | ||
} | ||
|
||
private void OnLockScreen() | ||
{ | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters