Plugins - Added API versioning

Tray icon - Fix crash when restoring main window from tray
This commit is contained in:
Robert committed 2022-08-21 10:00:00 +02:00
1 parent a282bf3fd7
commit 9d2136dd6a
3 files changed
+31 -7

No files matched your search

+8 -1
View File
@@ -33,7 +33,9 @@ namespace Artemis.Core
/// <summary>
/// The base path for Artemis application data folder
/// </summary>
public static readonly string BaseFolder = Environment.GetFolderPath(OperatingSystem.IsWindows() ? Environment.SpecialFolder.CommonApplicationData : Environment.SpecialFolder.LocalApplicationData);
public static readonly string BaseFolder = Environment.GetFolderPath(OperatingSystem.IsWindows()
? Environment.SpecialFolder.CommonApplicationData
: Environment.SpecialFolder.LocalApplicationData);
/// <summary>
/// The full path to the Artemis data folder
@@ -54,6 +56,11 @@ namespace Artemis.Core
/// The full path to the Artemis user layouts folder
/// </summary>
public static readonly string LayoutsFolder = Path.Combine(DataFolder, "User Layouts");
/// <summary>
/// The current API version for plugins
/// </summary>
public static readonly Version PluginApi = new Version(1, 0);
/// <summary>
/// The plugin info used by core components of Artemis