mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Fix ContextMenu LogicError (#1790)
This commit is contained in:
parent
c225029555
commit
5dd627d18e
1 changed files with 6 additions and 2 deletions
|
|
@ -268,11 +268,15 @@ internal sealed unsafe class ContextMenu : IInternalDisposableService, IContextM
|
|||
|
||||
foreach (var item in items)
|
||||
{
|
||||
if (!item.Prefix.HasValue && !item.UseDefaultPrefix)
|
||||
if (!item.Prefix.HasValue)
|
||||
{
|
||||
item.Prefix = MenuItem.DalamudDefaultPrefix;
|
||||
item.PrefixColor = MenuItem.DalamudDefaultPrefixColor;
|
||||
Log.Warning($"Menu item \"{item.Name}\" has no prefix, defaulting to Dalamud's. Menu items outside of a submenu must have a prefix.");
|
||||
|
||||
if (!item.UseDefaultPrefix)
|
||||
{
|
||||
Log.Warning($"Menu item \"{item.Name}\" has no prefix, defaulting to Dalamud's. Menu items outside of a submenu must have a prefix.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue