Plugins - Added descriptions

Settings - Plugin settings tab
UI - Catch exceptions during exception dialog display
Plugins - Implemented enable/disable of plugins (WIP)
Novation - Added Launchpad Mini layout and image
This commit is contained in:
Robert committed 2020-03-03 16:08:05 +01:00
1 parent 73245a3d4b
commit 16af36bc57
44 files changed
+810 -199

No files matched your search

@@ -0,0 +1,27 @@
using System.Diagnostics;
using System.Windows;
using Stylet;
namespace Artemis.Core.Utilities
{
public static class CurrentProcessUtilities
{
public static string GetCurrentLocation()
{
return Process.GetCurrentProcess().MainModule.FileName;
}
public static void RestartSelf()
{
var info = new ProcessStartInfo
{
Arguments = "/C choice /C Y /N /D Y /T 5 & START /wait taskkill /f /im \"Artemis.UI.exe\" & START \"\" \"" + GetCurrentLocation() + "\"",
WindowStyle = ProcessWindowStyle.Hidden,
CreateNoWindow = true,
FileName = "cmd.exe"
};
Process.Start(info);
Execute.OnUIThread(() => Application.Current.Shutdown());
}
}
}