Change exit group to system group
RENAME
WalletWasabi.Gui/Shell/Commands/ExitCommands.cs
WalletWasabi.Gui/Shell/Commands/SystemCommands.cs
@@ -7,7 +7,7 @@ using WalletWasabi.Helpers;
namespace WalletWasabi.Gui.Shell.Commands
{
- internal class ExitCommands
+ internal class SystemCommands
{
public Global Global { get; }
@@ -18,15 +18,15 @@ namespace WalletWasabi.Gui.Shell.Commands
public CommandDefinition ExitCommand { get; }
[ImportingConstructor]
- public ExitCommands(CommandIconService commandIconService, AvaloniaGlobalComponent global)
+ public SystemCommands(CommandIconService commandIconService, AvaloniaGlobalComponent global)
{
Global = Guard.NotNull(nameof(Global), global.Global);
var lockScreen = ReactiveCommand.Create(OnLockScreen);
var exit = ReactiveCommand.Create(OnExit);
- lockScreen.ThrownExceptions.Subscribe(Logging.Logger.LogWarning<ExitCommands>);
- exit.ThrownExceptions.Subscribe(Logging.Logger.LogWarning<ExitCommands>);
+ lockScreen.ThrownExceptions.Subscribe(Logging.Logger.LogWarning<SystemCommands>);
+ exit.ThrownExceptions.Subscribe(Logging.Logger.LogWarning<SystemCommands>);
LockScreenCommand = new CommandDefinition(
"Lock Screen",

MODIFY
WalletWasabi.Gui/Shell/MainMenu/FileMainMenuItems.cs
WalletWasabi.Gui/Shell/MainMenu/FileMainMenuItems.cs
@@ -35,9 +35,9 @@ namespace WalletWasabi.Gui.Shell.MainMenu
[DefaultOrder(1)]
public object DiskGroup => null;
- [ExportMainMenuDefaultGroup("File", "Exit")]
+ [ExportMainMenuDefaultGroup("File", "System")]
[DefaultOrder(2)]
- public object ExitGroup => null;
+ public object SystemGroup => null;
#endregion Group
@@ -64,12 +64,12 @@ namespace WalletWasabi.Gui.Shell.MainMenu
[ExportMainMenuItem("File", "Lock Screen")]
[DefaultOrder(4)]
- [DefaultGroup("Exit")]
+ [DefaultGroup("System")]
public IMenuItem LockScreen => MenuItemFactory.CreateCommandMenuItem("File.LockScreen");
[ExportMainMenuItem("File", "Exit")]
[DefaultOrder(5)]
- [DefaultGroup("Exit")]
+ [DefaultGroup("System")]
public IMenuItem Exit => MenuItemFactory.CreateCommandMenuItem("File.Exit");
#endregion MenuItem

Change exit group to system group