Skip to content

Commit

Permalink
This might be better
Browse files Browse the repository at this point in the history
  • Loading branch information
DeStilleGast committed Jun 26, 2019
1 parent c021cb3 commit 3b825d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dnSpy Restart as/MenuItem.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using dnSpy.Contracts.Menus;
using System;
using System.Diagnostics;
using System.IO;
using System.Windows.Input;

namespace dnSpy_Restart_as {
Expand All @@ -21,7 +22,7 @@ sealed class Restart32Command : MenuItemBase {
public override void Execute(IMenuItemContext context) {
((ICommand)ApplicationCommands.Close).Execute(context);

Process.Start($"{AppDomain.CurrentDomain.BaseDirectory}\\dnSpy-x86.exe");
Process.Start(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "dnSpy-x86.exe"));
}

public override bool IsVisible(IMenuItemContext context) {
Expand All @@ -35,7 +36,7 @@ sealed class Restart64Command : MenuItemBase {
public override void Execute(IMenuItemContext context) {
((ICommand)ApplicationCommands.Close).Execute(context);

Process.Start($"{AppDomain.CurrentDomain.BaseDirectory}\\dnSpy.exe");
Process.Start(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "dnSpy.exe"));
}

public override bool IsVisible(IMenuItemContext context) {
Expand Down

0 comments on commit 3b825d3

Please sign in to comment.