UI - Fix possible exception when showing dialogs

Profile editor - Limit undo/redo to 20 actions for now
Plugins - Fix custom icons not displaying in settings windows
This commit is contained in:
Robert committed 2021-07-06 23:45:34 +02:00
1 parent 631d8de2c3
commit 4034f438ed
7 files changed
+143 -13

No files matched your search

+4 -4
View File
@@ -25,8 +25,8 @@ namespace Artemis.Core
Scripts = new List<ProfileScript>();
ScriptConfigurations = new List<ScriptConfiguration>();
UndoStack = new Stack<string>();
RedoStack = new Stack<string>();
UndoStack = new MaxStack<string>(20);
RedoStack = new MaxStack<string>(20);
Load();
}
@@ -75,8 +75,8 @@ namespace Artemis.Core
/// </summary>
public ProfileEntity ProfileEntity { get; internal set; }
internal Stack<string> UndoStack { get; set; }
internal Stack<string> RedoStack { get; set; }
internal MaxStack<string> UndoStack { get; set; }
internal MaxStack<string> RedoStack { get; set; }
/// <inheritdoc />
public override void Update(double deltaTime)