|
@@ -1,6 +1,7 @@
|
|
|
using System.Collections.Generic;
|
|
|
using Avalonia.Controls;
|
|
|
using PixiEditor.Extensions.Common.Localization;
|
|
|
+using PixiEditor.Extensions.UI;
|
|
|
|
|
|
namespace PixiEditor.ViewModels.Menu;
|
|
|
|
|
@@ -17,6 +18,12 @@ internal abstract class MenuItemBuilder
|
|
|
menuItem = item;
|
|
|
return true;
|
|
|
}
|
|
|
+
|
|
|
+ if(Translator.GetKey(item) == header)
|
|
|
+ {
|
|
|
+ menuItem = item;
|
|
|
+ return true;
|
|
|
+ }
|
|
|
|
|
|
if (item.Header is string headerString && headerString == header)
|
|
|
{
|