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

@@ -470,7 +470,7 @@ namespace Artemis.Core.Services
// Keep the profile from being rendered by locking it
lock (profile)
{
if (!profile.UndoStack.Any())
if (profile.UndoStack.Count == 0)
{
_logger.Debug("Undo profile update - Failed, undo stack empty");
return false;
@@ -496,7 +496,7 @@ namespace Artemis.Core.Services
// Keep the profile from being rendered by locking it
lock (profile)
{
if (!profile.RedoStack.Any())
if (profile.RedoStack.Count == 0)
{
_logger.Debug("Redo profile update - Failed, redo empty");
return false;